Formulier maken in Gforms. (JSON opslaan en importeren)

{"0":{"title":"Brands test","description":"","labelPlacement":"top_label","descriptionPlacement":"below","button":{"type":"text","text":"Versturen","imageUrl":"","width":"auto","location":"bottom","layoutGridColumnSpan":12},"fields":[{"type":"number","id":3,"formId":1,"label":"Totaal KFC","adminLabel":"","isRequired":false,"size":"large","errorMessage":"","visibility":"hidden","inputs":null,"numberFormat":"decimal_dot","description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":false,"maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"7","enableAutocomplete":false,"autocompleteAttribute":"","choices":"","conditionalLogic":"","enableCalculation":false,"rangeMin":"","rangeMax":"","calculationFormula":"","productField":"","layoutGridColumnSpan":3,"enableEnhancedUI":0,"layoutGroupId":"938cf8c0","multipleFiles":false,"maxFiles":"","calculationRounding":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"errors":[],"fields":"","displayOnly":""},{"type":"number","id":4,"formId":1,"label":"Totaal BK","adminLabel":"","isRequired":false,"size":"large","errorMessage":"","visibility":"hidden","inputs":null,"numberFormat":"decimal_dot","description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":false,"maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"6","enableAutocomplete":false,"autocompleteAttribute":"","choices":"","conditionalLogic":"","enableCalculation":false,"rangeMin":"","rangeMax":"","calculationFormula":"","productField":"","layoutGridColumnSpan":3,"enableEnhancedUI":0,"layoutGroupId":"938cf8c0","multipleFiles":false,"maxFiles":"","calculationRounding":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"errors":[],"fields":"","displayOnly":""},{"type":"number","id":5,"formId":1,"label":"Totaal SBK","adminLabel":"","isRequired":false,"size":"large","errorMessage":"","visibility":"hidden","inputs":null,"numberFormat":"decimal_dot","description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":false,"maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"6","enableAutocomplete":false,"autocompleteAttribute":"","choices":"","conditionalLogic":"","enableCalculation":false,"rangeMin":"","rangeMax":"","calculationFormula":"","productField":"","layoutGridColumnSpan":3,"enableEnhancedUI":0,"layoutGroupId":"938cf8c0","multipleFiles":false,"maxFiles":"","calculationRounding":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"errors":[],"fields":"","displayOnly":""},{"type":"number","id":6,"formId":1,"label":"Totaal PFS","adminLabel":"","isRequired":false,"size":"large","errorMessage":"","visibility":"hidden","inputs":null,"numberFormat":"decimal_dot","description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":false,"maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"6","enableAutocomplete":false,"autocompleteAttribute":"","choices":"","conditionalLogic":"","enableCalculation":false,"rangeMin":"","rangeMax":"","calculationFormula":"","productField":"","layoutGridColumnSpan":3,"enableEnhancedUI":0,"layoutGroupId":"938cf8c0","multipleFiles":false,"maxFiles":"","calculationRounding":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"errors":[],"fields":"","displayOnly":""},{"type":"checkbox","id":2,"formId":1,"label":"Ik vind wisselende diensten werken geen probleem","adminLabel":"","isRequired":true,"size":"large","errorMessage":"","visibility":"visible","choices":[{"text":"Ja","value":"KFC|BK|SBX|PFS","isSelected":false,"price":""},{"text":"Nee","value":"GEEN","isSelected":false,"price":""}],"inputs":[{"id":"2.1","label":"Ja","name":""},{"id":"2.2","label":"Nee","name":""}],"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":false,"maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","enableAutocomplete":false,"autocompleteAttribute":"","conditionalLogic":"","productField":"","layoutGridColumnSpan":12,"enableSelectAll":"","enablePrice":"","enableEnhancedUI":0,"layoutGroupId":"9df6ae93","multipleFiles":false,"maxFiles":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"errors":[],"enableChoiceValue":true,"fields":"","displayOnly":""},{"type":"page","id":19,"formId":1,"label":"","adminLabel":"","isRequired":false,"size":"large","errorMessage":"","visibility":"visible","inputs":null,"displayOnly":true,"nextButton":{"type":"text","text":"Volgende","imageUrl":""},"previousButton":{"type":"text","text":"Vorige","imageUrl":""},"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":"","maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","enableAutocomplete":false,"autocompleteAttribute":"","choices":"","conditionalLogic":"","productField":"","layoutGridColumnSpan":12,"enableEnhancedUI":0,"layoutGroupId":"42d71f41","fields":""},{"type":"checkbox","id":7,"formId":1,"label":"Ik houd van structuur in mijn werk","adminLabel":"","isRequired":true,"size":"large","errorMessage":"","visibility":"visible","choices":[{"text":"Ja","value":"KFC","isSelected":false,"price":""},{"text":"Nee","value":"GEEN","isSelected":false,"price":""}],"inputs":[{"id":"7.1","label":"Ja","name":""},{"id":"7.2","label":"Nee","name":""}],"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":false,"maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","enableAutocomplete":false,"autocompleteAttribute":"","conditionalLogic":"","productField":"","layoutGridColumnSpan":12,"enableSelectAll":"","enablePrice":"","enableEnhancedUI":0,"layoutGroupId":"252a84bf","multipleFiles":false,"maxFiles":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"errors":[],"enableChoiceValue":true,"fields":"","displayOnly":""},{"type":"page","id":20,"formId":1,"label":"","adminLabel":"","isRequired":false,"size":"large","errorMessage":"","visibility":"visible","inputs":null,"displayOnly":true,"nextButton":{"type":"text","text":"Volgende","imageUrl":""},"previousButton":{"type":"text","text":"Vorige","imageUrl":""},"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":"","maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","enableAutocomplete":false,"autocompleteAttribute":"","choices":"","conditionalLogic":"","productField":"","layoutGridColumnSpan":12,"enableEnhancedUI":0,"layoutGroupId":"f699a7ad","fields":""},{"type":"checkbox","id":8,"formId":1,"label":"Ik word graag uitgedaagd in mijn werk","adminLabel":"","isRequired":true,"size":"large","errorMessage":"","visibility":"visible","choices":[{"text":"Ja","value":"BK|PFS","isSelected":false,"price":""},{"text":"Nee","value":"GEEN","isSelected":false,"price":""}],"inputs":[{"id":"8.1","label":"Ja","name":""},{"id":"8.2","label":"Nee","name":""}],"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":false,"maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","enableAutocomplete":false,"autocompleteAttribute":"","conditionalLogic":"","productField":"","layoutGridColumnSpan":12,"enableSelectAll":"","enablePrice":"","enableEnhancedUI":0,"layoutGroupId":"bdef2f66","multipleFiles":false,"maxFiles":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"errors":[],"enableChoiceValue":true,"fields":"","displayOnly":""},{"type":"page","id":21,"formId":1,"label":"","adminLabel":"","isRequired":false,"size":"large","errorMessage":"","visibility":"visible","inputs":null,"displayOnly":true,"nextButton":{"type":"text","text":"Volgende","imageUrl":""},"previousButton":{"type":"text","text":"Vorige","imageUrl":""},"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":"","maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","enableAutocomplete":false,"autocompleteAttribute":"","choices":"","conditionalLogic":"","productField":"","layoutGridColumnSpan":12,"enableEnhancedUI":0,"layoutGroupId":"9d4350cd","fields":""},{"type":"checkbox","id":9,"formId":1,"label":"Ik kom graag in contact met gasten\/klanten","adminLabel":"","isRequired":true,"size":"large","errorMessage":"","visibility":"visible","choices":[{"text":"Ja","value":"SBX","isSelected":false,"price":""},{"text":"Nee","value":"GEEN","isSelected":false,"price":""}],"inputs":[{"id":"9.1","label":"Ja","name":""},{"id":"9.2","label":"Nee","name":""}],"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":false,"maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","enableAutocomplete":false,"autocompleteAttribute":"","conditionalLogic":"","productField":"","layoutGridColumnSpan":12,"enableSelectAll":"","enablePrice":"","enableEnhancedUI":0,"layoutGroupId":"f52d5520","multipleFiles":false,"maxFiles":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"errors":[],"enableChoiceValue":true,"fields":"","displayOnly":""},{"type":"page","id":22,"formId":1,"label":"","adminLabel":"","isRequired":false,"size":"large","errorMessage":"","visibility":"visible","inputs":null,"displayOnly":true,"nextButton":{"type":"text","text":"Volgende","imageUrl":""},"previousButton":{"type":"text","text":"Vorige","imageUrl":""},"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":"","maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","enableAutocomplete":false,"autocompleteAttribute":"","choices":"","conditionalLogic":"","productField":"","layoutGridColumnSpan":12,"enableEnhancedUI":0,"layoutGroupId":"d46ed8ad","fields":""},{"type":"checkbox","id":10,"formId":1,"label":"Ik ben stress bestendig","adminLabel":"","isRequired":true,"size":"large","errorMessage":"","visibility":"visible","choices":[{"text":"Ja","value":"KFC|BK|SBX|PFS","isSelected":false,"price":""},{"text":"Nee","value":"GEEN","isSelected":false,"price":""}],"inputs":[{"id":"10.1","label":"Ja","name":""},{"id":"10.2","label":"Nee","name":""}],"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":false,"maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","enableAutocomplete":false,"autocompleteAttribute":"","conditionalLogic":"","productField":"","layoutGridColumnSpan":12,"enableSelectAll":"","enablePrice":"","enableEnhancedUI":0,"layoutGroupId":"72de643d","multipleFiles":false,"maxFiles":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"errors":[],"enableChoiceValue":true,"fields":"","displayOnly":""},{"type":"page","id":23,"formId":1,"label":"","adminLabel":"","isRequired":false,"size":"large","errorMessage":"","visibility":"visible","inputs":null,"displayOnly":true,"nextButton":{"type":"text","text":"Volgende","imageUrl":""},"previousButton":{"type":"text","text":"Vorige","imageUrl":""},"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":"","maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","enableAutocomplete":false,"autocompleteAttribute":"","choices":"","conditionalLogic":"","productField":"","layoutGridColumnSpan":12,"enableEnhancedUI":0,"layoutGroupId":"13fae046","fields":""},{"type":"checkbox","id":11,"formId":1,"label":"Ik leer graag nieuwe dingen op mijn werk","adminLabel":"","isRequired":true,"size":"large","errorMessage":"","visibility":"visible","choices":[{"text":"Ja","value":"BK|SBX|PFS","isSelected":false,"price":""},{"text":"Nee","value":"GEEN","isSelected":false,"price":""}],"inputs":[{"id":"11.1","label":"Ja","name":""},{"id":"11.2","label":"Nee","name":""}],"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":false,"maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","enableAutocomplete":false,"autocompleteAttribute":"","conditionalLogic":"","productField":"","layoutGridColumnSpan":12,"enableSelectAll":"","enablePrice":"","enableEnhancedUI":0,"layoutGroupId":"f9a9f5fd","multipleFiles":false,"maxFiles":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"errors":[],"enableChoiceValue":true,"fields":"","displayOnly":""},{"type":"page","id":24,"formId":1,"label":"","adminLabel":"","isRequired":false,"size":"large","errorMessage":"","visibility":"visible","inputs":null,"displayOnly":true,"nextButton":{"type":"text","text":"Volgende","imageUrl":""},"previousButton":{"type":"text","text":"Vorige","imageUrl":""},"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":"","maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","enableAutocomplete":false,"autocompleteAttribute":"","choices":"","conditionalLogic":"","productField":"","layoutGridColumnSpan":12,"enableEnhancedUI":0,"layoutGroupId":"45aad1bc","fields":""},{"type":"checkbox","id":12,"formId":1,"label":"Ik werk graag zelfstandig","adminLabel":"","isRequired":true,"size":"large","errorMessage":"","visibility":"visible","choices":[{"text":"Ja","value":"KFC","isSelected":false,"price":""},{"text":"Nee","value":"GEEN","isSelected":false,"price":""}],"inputs":[{"id":"12.1","label":"Ja","name":""},{"id":"12.2","label":"Nee","name":""}],"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":false,"maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","enableAutocomplete":false,"autocompleteAttribute":"","conditionalLogic":"","productField":"","layoutGridColumnSpan":12,"enableSelectAll":"","enablePrice":"","enableEnhancedUI":0,"layoutGroupId":"86264c38","multipleFiles":false,"maxFiles":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"errors":[],"enableChoiceValue":true,"fields":"","displayOnly":""},{"type":"page","id":25,"formId":1,"label":"","adminLabel":"","isRequired":false,"size":"large","errorMessage":"","visibility":"visible","inputs":null,"displayOnly":true,"nextButton":{"type":"text","text":"Volgende","imageUrl":""},"previousButton":{"type":"text","text":"Vorige","imageUrl":""},"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":"","maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","enableAutocomplete":false,"autocompleteAttribute":"","choices":"","conditionalLogic":"","productField":"","layoutGridColumnSpan":12,"enableEnhancedUI":0,"layoutGroupId":"2083599e","fields":""},{"type":"checkbox","id":13,"formId":1,"label":"Ik werk graag in teamverband","adminLabel":"","isRequired":true,"size":"large","errorMessage":"","visibility":"visible","choices":[{"text":"Ja","value":"BK","isSelected":false,"price":""},{"text":"Nee","value":"GEEN","isSelected":false,"price":""}],"inputs":[{"id":"13.1","label":"Ja","name":""},{"id":"13.2","label":"Nee","name":""}],"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":false,"maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","enableAutocomplete":false,"autocompleteAttribute":"","conditionalLogic":"","productField":"","layoutGridColumnSpan":12,"enableSelectAll":"","enablePrice":"","enableEnhancedUI":0,"layoutGroupId":"b25c9fc1","multipleFiles":false,"maxFiles":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"errors":[],"enableChoiceValue":true,"fields":"","displayOnly":""},{"type":"page","id":26,"formId":1,"label":"","adminLabel":"","isRequired":false,"size":"large","errorMessage":"","visibility":"visible","inputs":null,"displayOnly":true,"nextButton":{"type":"text","text":"Volgende","imageUrl":""},"previousButton":{"type":"text","text":"Vorige","imageUrl":""},"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":"","maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","enableAutocomplete":false,"autocompleteAttribute":"","choices":"","conditionalLogic":"","productField":"","layoutGridColumnSpan":12,"enableEnhancedUI":0,"layoutGroupId":"103534fe","fields":""},{"type":"checkbox","id":14,"formId":1,"label":"Ik vind hygiene belangrijk","adminLabel":"","isRequired":true,"size":"large","errorMessage":"","visibility":"visible","choices":[{"text":"Ja","value":"KFC","isSelected":false,"price":""},{"text":"Nee","value":"GEEN","isSelected":false,"price":""}],"inputs":[{"id":"14.1","label":"Ja","name":""},{"id":"14.2","label":"Nee","name":""}],"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":false,"maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","enableAutocomplete":false,"autocompleteAttribute":"","conditionalLogic":"","productField":"","layoutGridColumnSpan":12,"enableSelectAll":"","enablePrice":"","enableEnhancedUI":0,"layoutGroupId":"080d6109","multipleFiles":false,"maxFiles":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"errors":[],"enableChoiceValue":true,"fields":"","displayOnly":""},{"type":"page","id":27,"formId":1,"label":"","adminLabel":"","isRequired":false,"size":"large","errorMessage":"","visibility":"visible","inputs":null,"displayOnly":true,"nextButton":{"type":"text","text":"Volgende","imageUrl":""},"previousButton":{"type":"text","text":"Vorige","imageUrl":""},"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":"","maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","enableAutocomplete":false,"autocompleteAttribute":"","choices":"","conditionalLogic":"","productField":"","layoutGridColumnSpan":12,"enableEnhancedUI":0,"layoutGroupId":"0bd901db","fields":""},{"type":"checkbox","id":15,"formId":1,"label":"Ik wil graag expert worden in een taak","adminLabel":"","isRequired":true,"size":"large","errorMessage":"","visibility":"visible","choices":[{"text":"Ja","value":"KFC","isSelected":false,"price":""},{"text":"Nee","value":"GEEN","isSelected":false,"price":""}],"inputs":[{"id":"15.1","label":"Ja","name":""},{"id":"15.2","label":"Nee","name":""}],"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":false,"maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","enableAutocomplete":false,"autocompleteAttribute":"","conditionalLogic":"","productField":"","layoutGridColumnSpan":12,"enableSelectAll":"","enablePrice":"","enableEnhancedUI":0,"layoutGroupId":"4b896896","multipleFiles":false,"maxFiles":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"errors":[],"enableChoiceValue":true,"fields":"","displayOnly":""},{"type":"page","id":28,"formId":1,"label":"","adminLabel":"","isRequired":false,"size":"large","errorMessage":"","visibility":"visible","inputs":null,"displayOnly":true,"nextButton":{"type":"text","text":"Volgende","imageUrl":""},"previousButton":{"type":"text","text":"Vorige","imageUrl":""},"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":"","maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","enableAutocomplete":false,"autocompleteAttribute":"","choices":"","conditionalLogic":"","productField":"","layoutGridColumnSpan":12,"enableEnhancedUI":0,"layoutGroupId":"dcef8a75","fields":""},{"type":"checkbox","id":17,"formId":1,"label":"Ik vind doorgroeimogelijkheden belangrijk","adminLabel":"","isRequired":true,"size":"large","errorMessage":"","visibility":"visible","choices":[{"text":"Ja","value":"KFC|BK|SBX|PFS","isSelected":false,"price":""},{"text":"Nee","value":"GEEN","isSelected":false,"price":""}],"inputs":[{"id":"17.1","label":"Ja","name":""},{"id":"17.2","label":"Nee","name":""}],"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":false,"maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","enableAutocomplete":false,"autocompleteAttribute":"","conditionalLogic":"","productField":"","layoutGridColumnSpan":12,"enableSelectAll":"","enablePrice":"","enableEnhancedUI":0,"layoutGroupId":"7df090e9","multipleFiles":false,"maxFiles":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"errors":[],"enableChoiceValue":true,"fields":"","displayOnly":""}],"version":"2.6.9","id":1,"markupVersion":2,"nextFieldId":29,"useCurrentUserAsAuthor":true,"postContentTemplateEnabled":false,"postTitleTemplateEnabled":false,"postTitleTemplate":"","postContentTemplate":"","lastPageButton":{"type":"text","text":"Vorige","imageUrl":""},"pagination":{"type":"percentage","pages":[""],"style":"blue","backgroundColor":null,"color":null,"display_progressbar_on_confirmation":false,"progressbar_completion_text":null},"firstPageCssClass":"","confirmations":[{"id":"63da3376e31b2","name":"Standaardbevestiging","isDefault":true,"type":"message","message":"Bedankt voor je bericht! We zullen binnenkort contact met je opnemen.","url":"","pageId":"","queryString":""}],"notifications":[{"id":"63da3376e2a33","isActive":true,"to":"{admin_email}","name":"Beheerdersmelding","event":"form_submission","toType":"email","subject":"Nieuwe inzending van {form_title}","message":"{all_fields}"}]},"version":"2.6.9"}

Code voor de redirects en het tellen van de resultaten

add_action( 'gform_after_submission_1', 'access_entry_via_field', 10, 2 );
 function access_entry_via_field( $entry, $form ) {
     $kfc = 0;
     $kfc_totaal = rgar( $entry, '3' );
     $bk = 0;
     $bk_totaal = rgar( $entry, '4' );
     $sbx = 0;
     $sbx_totaal = rgar( $entry, '5' );
     $pfs = 0;
     $pfs_totaal = rgar( $entry, '6' );
     $resultaat = array();
     foreach ( $form['fields'] as $field ) {
         $inputs = $field->get_entry_inputs();
         if ( is_array( $inputs ) ) {
             foreach ( $inputs as $input ) {
                $value = rgar( $entry, (string) $input['id'] );
                $tags = explode('|' , $value);
                if (in_array("KFC", $tags)) {
                    $kfc = ($kfc + 1);
                }
                if (in_array("BK", $tags)) {
                    $bk = ($bk + 1);
                }
                if (in_array("SBX", $tags)) {
                    $sbx = ($sbx + 1);
                }
                if (in_array("PFS", $tags)) {
                    $pfs = ($pfs + 1);
                }
                $tags_all[] = $tags;
             }
         }
     }
     $kfc_percentage = ($kfc / $kfc_totaal) * 100;
     $kfc_percentage = round($kfc_percentage);
     $resultaat['kfc'] = $kfc_percentage;
     //echo 'KFC = '.$kfc_percentage.'%<br/>';
     $bk_percentage = ($bk / $bk_totaal) * 100;
     $bk_percentage = round($bk_percentage);
     $resultaat['bk'] = $bk_percentage;
     //echo 'BK = '.$bk_percentage.'%<br/>';
     $sbx_percentage = ($sbx / $sbx_totaal) * 100;
     $sbx_percentage = round($sbx_percentage);
     $resultaat['sbx'] = $sbx_percentage;
     //echo 'SBX = '.$sbx_percentage.'%<br/>';
     $pfs_percentage = ($pfs / $pfs_totaal) * 100;
     $pfs_percentage = round($pfs_percentage);
     $resultaat['pfs'] = $pfs_percentage;
     //echo 'PFS = '.$pfs_percentage.'%<br/>';
     //echo '<pre>';
     //print_r($resultaat);
     $maximaal = max($resultaat);
     $key = array_search($maximaal, $resultaat);
     //echo "The max value is: ".$maximaal.", its key is: ".$key;
     unset($resultaat[$key]);
     //print_r($resultaat);
     $parameters = http_build_query($resultaat,'','&');
     $link = get_site_url().'/resultaat-'.$key.'/?number='.$maximaal.'&'.$parameters;
     //echo '</pre>';
     header('Location:'.$link.'');
     exit;
 }

Shortcode om op de pagina’s de params eruit te halen

 function wbmz_urlparam( $atts , $content = null ) {
   $atts = shortcode_atts(
     array(
       'param' => '',
     ),
     $atts,
     'urlparam'
   );
   $param = $atts['param'];
   
   return $_GET[$param];
 
 }
 add_shortcode( 'urlparam', 'wbmz_urlparam' );
Geef een reactie 0