implement a Go to section based on answer rule in a JSON payload

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code> {
"requests": [
{
"createItem": {
"item": {
"title": "Email",
"questionItem": {
"question": {
"required": false,
"textQuestion": {}
}
}
},
"location": {
"index": 0
}
}
},
{
"createItem": {
"item": {
"title": "Product Title",
"questionItem": {
"question": {
"required": true,
"textQuestion": {}
}
}
},
"location": {
"index": 1
}
}
},
{
"createItem": {
"item": {
"title": "Product SKU Code",
"questionItem": {
"question": {
"required": true,
"textQuestion": {}
}
}
},
"location": {
"index": 2
}
}
},
{
"createItem": {
"item": {
"title": "OFB Marketplace",
"questionItem": {
"question": {
"choiceQuestion": {
"type": "CHECKBOX",
"options": [
{ "value": "Food" },
{ "value": "Beverages" },
{ "value": "Merchandise" },
{ "value": "Services" }
]
}
}
}
},
"location": {
"index": 3
}
}
},
{
"createItem": {
"item": {
"title": "CFM Marketplace",
"questionItem": {
"question": {
"choiceQuestion": {
"type": "CHECKBOX",
"options": [
{ "value": "Services" },
{ "value": "Merchandise" },
{ "value": "Outwear" },
{ "value": "Beverages" },
{ "value": "Meat Dairy and Vegetable Products" },
{ "value": "Prepared Food" }
]
}
}
}
},
"location": {
"index": 4
}
}
},
{
"createItem": {
"item": {
"title": "List Price",
"questionItem": {
"question": {
"textQuestion": {}
}
}
},
"location": {
"index": 5
}
}
},
{
"createItem": {
"item": {
"title": "Price",
"questionItem": {
"question": {
"textQuestion": {}
}
}
},
"location": {
"index": 6
}
}
},
{
"createItem": {
"item": {
"title": "Inventory",
"questionItem": {
"question": {
"textQuestion": {}
}
}
},
"location": {
"index": 7
}
}
},
{
"createItem": {
"item": {
"title": "This product has multiple options, like different sizes or colors",
"questionItem": {
"question": {
"choiceQuestion": {
"type": "RADIO",
"options": [
{ "value": "Yes" },
{ "value": "No" }
]
}
}
}
},
"location": {
"index": 8
}
}
},
{
"createItem": {
"item": {
"title": "Section 2: Type of Variation",
"pageBreakItem": {}
},
"location": {
"index": 9
}
}
},
{
"createItem": {
"item": {
"title": "Type of Variation",
"questionItem": {
"question": {
"required": true,
"choiceQuestion": {
"type": "RADIO",
"options": [
{ "value": "List Variation" },
{ "value": "List Variations (Non SKU)" },
{ "value": "Text Variation" }
]
}
}
}
},
"location": {
"index": 10
}
}
},
{
"createItem": {
"item": {
"title": "Section 3: Options",
"pageBreakItem": {}
},
"location": {
"index": 11
}
}
},
{
"createItem": {
"item": {
"title": "Option",
"questionItem": {
"question": {
"choiceQuestion": {
"type": "RADIO",
"options": [
{ "value": "Pack Size" },
{ "value": "Size" },
{ "value": "Color" },
{ "value": "Material" },
{ "value": "Weight" },
{ "value": "Select this if you want to enter a different option" }
]
}
}
}
},
"location": {
"index": 12
}
}
},
{
"createItem": {
"item": {
"title": "Section 4: Custom Option Name",
"pageBreakItem": {}
},
"location": {
"index": 13
}
}
},
{
"createItem": {
"item": {
"title": "Custom Option Name",
"questionItem": {
"question": {
"textQuestion": {}
}
}
},
"location": {
"index": 14
}
}
},
{
"createItem": {
"item": {
"title": "Section 5: Option Values",
"pageBreakItem": {}
},
"location": {
"index": 15
}
}
},
{
"createItem": {
"item": {
"title": "Option Values (separate the values using comma e.g. option1,option2,option3)",
"questionItem": {
"question": {
"textQuestion": {}
}
}
},
"location": {
"index": 16
}
}
}
]
}
</code>
<code> { "requests": [ { "createItem": { "item": { "title": "Email", "questionItem": { "question": { "required": false, "textQuestion": {} } } }, "location": { "index": 0 } } }, { "createItem": { "item": { "title": "Product Title", "questionItem": { "question": { "required": true, "textQuestion": {} } } }, "location": { "index": 1 } } }, { "createItem": { "item": { "title": "Product SKU Code", "questionItem": { "question": { "required": true, "textQuestion": {} } } }, "location": { "index": 2 } } }, { "createItem": { "item": { "title": "OFB Marketplace", "questionItem": { "question": { "choiceQuestion": { "type": "CHECKBOX", "options": [ { "value": "Food" }, { "value": "Beverages" }, { "value": "Merchandise" }, { "value": "Services" } ] } } } }, "location": { "index": 3 } } }, { "createItem": { "item": { "title": "CFM Marketplace", "questionItem": { "question": { "choiceQuestion": { "type": "CHECKBOX", "options": [ { "value": "Services" }, { "value": "Merchandise" }, { "value": "Outwear" }, { "value": "Beverages" }, { "value": "Meat Dairy and Vegetable Products" }, { "value": "Prepared Food" } ] } } } }, "location": { "index": 4 } } }, { "createItem": { "item": { "title": "List Price", "questionItem": { "question": { "textQuestion": {} } } }, "location": { "index": 5 } } }, { "createItem": { "item": { "title": "Price", "questionItem": { "question": { "textQuestion": {} } } }, "location": { "index": 6 } } }, { "createItem": { "item": { "title": "Inventory", "questionItem": { "question": { "textQuestion": {} } } }, "location": { "index": 7 } } }, { "createItem": { "item": { "title": "This product has multiple options, like different sizes or colors", "questionItem": { "question": { "choiceQuestion": { "type": "RADIO", "options": [ { "value": "Yes" }, { "value": "No" } ] } } } }, "location": { "index": 8 } } }, { "createItem": { "item": { "title": "Section 2: Type of Variation", "pageBreakItem": {} }, "location": { "index": 9 } } }, { "createItem": { "item": { "title": "Type of Variation", "questionItem": { "question": { "required": true, "choiceQuestion": { "type": "RADIO", "options": [ { "value": "List Variation" }, { "value": "List Variations (Non SKU)" }, { "value": "Text Variation" } ] } } } }, "location": { "index": 10 } } }, { "createItem": { "item": { "title": "Section 3: Options", "pageBreakItem": {} }, "location": { "index": 11 } } }, { "createItem": { "item": { "title": "Option", "questionItem": { "question": { "choiceQuestion": { "type": "RADIO", "options": [ { "value": "Pack Size" }, { "value": "Size" }, { "value": "Color" }, { "value": "Material" }, { "value": "Weight" }, { "value": "Select this if you want to enter a different option" } ] } } } }, "location": { "index": 12 } } }, { "createItem": { "item": { "title": "Section 4: Custom Option Name", "pageBreakItem": {} }, "location": { "index": 13 } } }, { "createItem": { "item": { "title": "Custom Option Name", "questionItem": { "question": { "textQuestion": {} } } }, "location": { "index": 14 } } }, { "createItem": { "item": { "title": "Section 5: Option Values", "pageBreakItem": {} }, "location": { "index": 15 } } }, { "createItem": { "item": { "title": "Option Values (separate the values using comma e.g. option1,option2,option3)", "questionItem": { "question": { "textQuestion": {} } } }, "location": { "index": 16 } } } ] } </code>
    {
    "requests": [
        {
            "createItem": {
                "item": {
                    "title": "Email",
                    "questionItem": {
                        "question": {
                            "required": false,
                            "textQuestion": {}
                        }
                    }
                },
                "location": {
                    "index": 0
                }
            }
        },
        {
            "createItem": {
                "item": {
                    "title": "Product Title",
                    "questionItem": {
                        "question": {
                            "required": true,
                            "textQuestion": {}
                        }
                    }
                },
                "location": {
                    "index": 1
                }
            }
        },
        {
            "createItem": {
                "item": {
                    "title": "Product SKU Code",
                    "questionItem": {
                        "question": {
                            "required": true,
                            "textQuestion": {}
                        }
                    }
                },
                "location": {
                    "index": 2
                }
            }
        },
        {
            "createItem": {
                "item": {
                    "title": "OFB Marketplace",
                    "questionItem": {
                        "question": {
                            "choiceQuestion": {
                                "type": "CHECKBOX",
                                "options": [
                                    { "value": "Food" },
                                    { "value": "Beverages" },
                                    { "value": "Merchandise" },
                                    { "value": "Services" }
                                ]
                            }
                        }
                    }
                },
                "location": {
                    "index": 3
                }
            }
        },
        {
            "createItem": {
                "item": {
                    "title": "CFM Marketplace",
                    "questionItem": {
                        "question": {
                            "choiceQuestion": {
                                "type": "CHECKBOX",
                                "options": [
                                    { "value": "Services" },
                                    { "value": "Merchandise" },
                                    { "value": "Outwear" },
                                    { "value": "Beverages" },
                                    { "value": "Meat Dairy and Vegetable Products" },
                                    { "value": "Prepared Food" }
                                ]
                            }
                        }
                    }
                },
                "location": {
                    "index": 4
                }
            }
        },
        {
            "createItem": {
                "item": {
                    "title": "List Price",
                    "questionItem": {
                        "question": {
                            "textQuestion": {}
                        }
                    }
                },
                "location": {
                    "index": 5
                }
            }
        },
        {
            "createItem": {
                "item": {
                    "title": "Price",
                    "questionItem": {
                        "question": {
                            "textQuestion": {}
                        }
                    }
                },
                "location": {
                    "index": 6
                }
            }
        },
        {
            "createItem": {
                "item": {
                    "title": "Inventory",
                    "questionItem": {
                        "question": {
                            "textQuestion": {}
                        }
                    }
                },
                "location": {
                    "index": 7
                }
            }
        },
        {
            "createItem": {
                "item": {
                    "title": "This product has multiple options, like different sizes or colors",
                    "questionItem": {
                        "question": {
                            "choiceQuestion": {
                                "type": "RADIO",
                                "options": [
                                    { "value": "Yes" },
                                    { "value": "No" }
                                ]
                            }
                        }
                    }
                },
                "location": {
                    "index": 8
                }
            }
        },
        {
            "createItem": {
                "item": {
                    "title": "Section 2: Type of Variation",
                    "pageBreakItem": {}
                },
                "location": {
                    "index": 9
                }
            }
        },
        {
            "createItem": {
                "item": {
                    "title": "Type of Variation",
                    "questionItem": {
                        "question": {
                            "required": true,
                            "choiceQuestion": {
                                "type": "RADIO",
                                "options": [
                                    { "value": "List Variation" },
                                    { "value": "List Variations (Non SKU)" },
                                    { "value": "Text Variation" }
                                ]
                            }
                        }
                    }
                },
                "location": {
                    "index": 10
                }
            }
        },
        {
            "createItem": {
                "item": {
                    "title": "Section 3: Options",
                    "pageBreakItem": {}
                },
                "location": {
                    "index": 11
                }
            }
        },
        {
            "createItem": {
                "item": {
                    "title": "Option",
                    "questionItem": {
                        "question": {
                            "choiceQuestion": {
                                "type": "RADIO",
                                "options": [
                                    { "value": "Pack Size" },
                                    { "value": "Size" },
                                    { "value": "Color" },
                                    { "value": "Material" },
                                    { "value": "Weight" },
                                    { "value": "Select this if you want to enter a different option" }
                                ]
                            }
                        }
                    }
                },
                "location": {
                    "index": 12
                }
            }
        },
        {
            "createItem": {
                "item": {
                    "title": "Section 4: Custom Option Name",
                    "pageBreakItem": {}
                },
                "location": {
                    "index": 13
                }
            }
        },
        {
            "createItem": {
                "item": {
                    "title": "Custom Option Name",
                    "questionItem": {
                        "question": {
                            "textQuestion": {}
                        }
                    }
                },
                "location": {
                    "index": 14
                }
            }
        },
        {
            "createItem": {
                "item": {
                    "title": "Section 5: Option Values",
                    "pageBreakItem": {}
                },
                "location": {
                    "index": 15
                }
            }
        },
        {
            "createItem": {
                "item": {
                    "title": "Option Values (separate the values using comma e.g. option1,option2,option3)",
                    "questionItem": {
                        "question": {
                            "textQuestion": {}
                        }
                    }
                },
                "location": {
                    "index": 16
                }
            }
        }
    ]
}

need to implement a Go to section based on answer rule in a JSON payload

ok so here’s what I want to happen, we need a Go to section based on answer rule, there should be a proper mapping of questions based on answers, they are define below. Pls provide the correct json code

  1. In the question “This product has multiple options, like different sizes or colors” if the user answer is Yes, the user should be set to answer the section “Type of Variation”, if their answer is No, then submit the form
  2. In the “Type of Variation” question, if the answer is “List Variation” they should answer the section under “Option”
  3. In “Option” if the answer is anything aside from “Select this if you want to enter a different option” they should be redirected to the section of “Option Values (separate the values using comma e.g. option1,option2,option3)”
  4. In “Option” if the user answer is “Select this if you want to enter a different option” the user should be redirected to the section “Custom Option Name”

can you help me how to implement these?

New contributor

Joseph Torres is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Using JSON Payload for Go to Section

I have added this specific portion to your current Json. Please ensure that the ItemID for Section 2: Type of Variation is updated accordingly.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code> {
"value": "Yes",
"goToSectionId": "CHANGE IT WITH YOUR ITEMID FOR SECTION 2: TYPE OF VARIATION"
},
{
"value": "No",
"goToAction": "SUBMIT_FORM"
}
</code>
<code> { "value": "Yes", "goToSectionId": "CHANGE IT WITH YOUR ITEMID FOR SECTION 2: TYPE OF VARIATION" }, { "value": "No", "goToAction": "SUBMIT_FORM" } </code>
              {
                "value": "Yes",
                "goToSectionId": "CHANGE IT WITH YOUR ITEMID FOR SECTION 2: TYPE OF VARIATION"
              },
              {
                "value": "No",
                "goToAction": "SUBMIT_FORM"
              }

Completed JSON Payload:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>{
"requests": [
{
"createItem": {
"item": {
"title": "Email",
"questionItem": {
"question": {
"required": false,
"textQuestion": {}
}
}
},
"location": {
"index": 0
}
}
},
{
"createItem": {
"item": {
"title": "Product Title",
"questionItem": {
"question": {
"required": true,
"textQuestion": {}
}
}
},
"location": {
"index": 1
}
}
},
{
"createItem": {
"item": {
"title": "Product SKU Code",
"questionItem": {
"question": {
"required": true,
"textQuestion": {}
}
}
},
"location": {
"index": 2
}
}
},
{
"createItem": {
"item": {
"title": "OFB Marketplace",
"questionItem": {
"question": {
"choiceQuestion": {
"type": "CHECKBOX",
"options": [
{
"value": "Food"
},
{
"value": "Beverages"
},
{
"value": "Merchandise"
},
{
"value": "Services"
}
]
}
}
}
},
"location": {
"index": 3
}
}
},
{
"createItem": {
"item": {
"title": "CFM Marketplace",
"questionItem": {
"question": {
"choiceQuestion": {
"type": "CHECKBOX",
"options": [
{
"value": "Services"
},
{
"value": "Merchandise"
},
{
"value": "Outwear"
},
{
"value": "Beverages"
},
{
"value": "Meat Dairy and Vegetable Products"
},
{
"value": "Prepared Food"
}
]
}
}
}
},
"location": {
"index": 4
}
}
},
{
"createItem": {
"item": {
"title": "List Price",
"questionItem": {
"question": {
"textQuestion": {}
}
}
},
"location": {
"index": 5
}
}
},
{
"createItem": {
"item": {
"title": "Price",
"questionItem": {
"question": {
"textQuestion": {}
}
}
},
"location": {
"index": 6
}
}
},
{
"createItem": {
"item": {
"title": "Inventory",
"questionItem": {
"question": {
"textQuestion": {}
}
}
},
"location": {
"index": 7
}
}
},
{
"createItem": {
"item": {
"title": "This product has multiple options, like different sizes or colors",
"questionItem": {
"question": {
"choiceQuestion": {
"type": "RADIO",
"options": [
{
"value": "Yes",
"goToSectionId": "CHANGE IT WITH YOUR ITEMID FOR SECTION 2: TYPE OF VARIATION"
},
{
"value": "No",
"goToAction": "SUBMIT_FORM"
}
]
}
}
}
},
"location": {
"index": 8
}
}
},
{
"createItem": {
"item": {
"title": "Section 2: Type of Variation",
"pageBreakItem": {}
},
"location": {
"index": 9
}
}
},
{
"createItem": {
"item": {
"title": "Type of Variation",
"questionItem": {
"question": {
"required": true,
"choiceQuestion": {
"type": "RADIO",
"options": [
{
"value": "List Variation"
},
{
"value": "List Variations (Non SKU)"
},
{
"value": "Text Variation"
}
]
}
}
}
},
"location": {
"index": 10
}
}
},
{
"createItem": {
"item": {
"title": "Section 3: Options",
"pageBreakItem": {}
},
"location": {
"index": 11
}
}
},
{
"createItem": {
"item": {
"title": "Option",
"questionItem": {
"question": {
"choiceQuestion": {
"type": "RADIO",
"options": [
{
"value": "Pack Size"
},
{
"value": "Size"
},
{
"value": "Color"
},
{
"value": "Material"
},
{
"value": "Weight"
},
{
"value": "Select this if you want to enter a different option"
}
]
}
}
}
},
"location": {
"index": 12
}
}
},
{
"createItem": {
"item": {
"title": "Section 4: Custom Option Name",
"pageBreakItem": {}
},
"location": {
"index": 13
}
}
},
{
"createItem": {
"item": {
"title": "Custom Option Name",
"questionItem": {
"question": {
"textQuestion": {}
}
}
},
"location": {
"index": 14
}
}
},
{
"createItem": {
"item": {
"title": "Section 5: Option Values",
"pageBreakItem": {}
},
"location": {
"index": 15
}
}
},
{
"createItem": {
"item": {
"title": "Option Values (separate the values using comma e.g. option1,option2,option3)",
"questionItem": {
"question": {
"textQuestion": {}
}
}
},
"location": {
"index": 16
}
}
}
]
}
</code>
<code>{ "requests": [ { "createItem": { "item": { "title": "Email", "questionItem": { "question": { "required": false, "textQuestion": {} } } }, "location": { "index": 0 } } }, { "createItem": { "item": { "title": "Product Title", "questionItem": { "question": { "required": true, "textQuestion": {} } } }, "location": { "index": 1 } } }, { "createItem": { "item": { "title": "Product SKU Code", "questionItem": { "question": { "required": true, "textQuestion": {} } } }, "location": { "index": 2 } } }, { "createItem": { "item": { "title": "OFB Marketplace", "questionItem": { "question": { "choiceQuestion": { "type": "CHECKBOX", "options": [ { "value": "Food" }, { "value": "Beverages" }, { "value": "Merchandise" }, { "value": "Services" } ] } } } }, "location": { "index": 3 } } }, { "createItem": { "item": { "title": "CFM Marketplace", "questionItem": { "question": { "choiceQuestion": { "type": "CHECKBOX", "options": [ { "value": "Services" }, { "value": "Merchandise" }, { "value": "Outwear" }, { "value": "Beverages" }, { "value": "Meat Dairy and Vegetable Products" }, { "value": "Prepared Food" } ] } } } }, "location": { "index": 4 } } }, { "createItem": { "item": { "title": "List Price", "questionItem": { "question": { "textQuestion": {} } } }, "location": { "index": 5 } } }, { "createItem": { "item": { "title": "Price", "questionItem": { "question": { "textQuestion": {} } } }, "location": { "index": 6 } } }, { "createItem": { "item": { "title": "Inventory", "questionItem": { "question": { "textQuestion": {} } } }, "location": { "index": 7 } } }, { "createItem": { "item": { "title": "This product has multiple options, like different sizes or colors", "questionItem": { "question": { "choiceQuestion": { "type": "RADIO", "options": [ { "value": "Yes", "goToSectionId": "CHANGE IT WITH YOUR ITEMID FOR SECTION 2: TYPE OF VARIATION" }, { "value": "No", "goToAction": "SUBMIT_FORM" } ] } } } }, "location": { "index": 8 } } }, { "createItem": { "item": { "title": "Section 2: Type of Variation", "pageBreakItem": {} }, "location": { "index": 9 } } }, { "createItem": { "item": { "title": "Type of Variation", "questionItem": { "question": { "required": true, "choiceQuestion": { "type": "RADIO", "options": [ { "value": "List Variation" }, { "value": "List Variations (Non SKU)" }, { "value": "Text Variation" } ] } } } }, "location": { "index": 10 } } }, { "createItem": { "item": { "title": "Section 3: Options", "pageBreakItem": {} }, "location": { "index": 11 } } }, { "createItem": { "item": { "title": "Option", "questionItem": { "question": { "choiceQuestion": { "type": "RADIO", "options": [ { "value": "Pack Size" }, { "value": "Size" }, { "value": "Color" }, { "value": "Material" }, { "value": "Weight" }, { "value": "Select this if you want to enter a different option" } ] } } } }, "location": { "index": 12 } } }, { "createItem": { "item": { "title": "Section 4: Custom Option Name", "pageBreakItem": {} }, "location": { "index": 13 } } }, { "createItem": { "item": { "title": "Custom Option Name", "questionItem": { "question": { "textQuestion": {} } } }, "location": { "index": 14 } } }, { "createItem": { "item": { "title": "Section 5: Option Values", "pageBreakItem": {} }, "location": { "index": 15 } } }, { "createItem": { "item": { "title": "Option Values (separate the values using comma e.g. option1,option2,option3)", "questionItem": { "question": { "textQuestion": {} } } }, "location": { "index": 16 } } } ] } </code>
{
  "requests": [
    {
      "createItem": {
        "item": {
          "title": "Email",
          "questionItem": {
            "question": {
              "required": false,
              "textQuestion": {}
            }
          }
        },
        "location": {
          "index": 0
        }
      }
    },
    {
      "createItem": {
        "item": {
          "title": "Product Title",
          "questionItem": {
            "question": {
              "required": true,
              "textQuestion": {}
            }
          }
        },
        "location": {
          "index": 1
        }
      }
    },
    {
      "createItem": {
        "item": {
          "title": "Product SKU Code",
          "questionItem": {
            "question": {
              "required": true,
              "textQuestion": {}
            }
          }
        },
        "location": {
          "index": 2
        }
      }
    },
    {
      "createItem": {
        "item": {
          "title": "OFB Marketplace",
          "questionItem": {
            "question": {
              "choiceQuestion": {
                "type": "CHECKBOX",
                "options": [
                  {
                    "value": "Food"
                  },
                  {
                    "value": "Beverages"
                  },
                  {
                    "value": "Merchandise"
                  },
                  {
                    "value": "Services"
                  }
                ]
              }
            }
          }
        },
        "location": {
          "index": 3
        }
      }
    },
    {
      "createItem": {
        "item": {
          "title": "CFM Marketplace",
          "questionItem": {
            "question": {
              "choiceQuestion": {
                "type": "CHECKBOX",
                "options": [
                  {
                    "value": "Services"
                  },
                  {
                    "value": "Merchandise"
                  },
                  {
                    "value": "Outwear"
                  },
                  {
                    "value": "Beverages"
                  },
                  {
                    "value": "Meat Dairy and Vegetable Products"
                  },
                  {
                    "value": "Prepared Food"
                  }
                ]
              }
            }
          }
        },
        "location": {
          "index": 4
        }
      }
    },
    {
      "createItem": {
        "item": {
          "title": "List Price",
          "questionItem": {
            "question": {
              "textQuestion": {}
            }
          }
        },
        "location": {
          "index": 5
        }
      }
    },
    {
      "createItem": {
        "item": {
          "title": "Price",
          "questionItem": {
            "question": {
              "textQuestion": {}
            }
          }
        },
        "location": {
          "index": 6
        }
      }
    },
    {
      "createItem": {
        "item": {
          "title": "Inventory",
          "questionItem": {
            "question": {
              "textQuestion": {}
            }
          }
        },
        "location": {
          "index": 7
        }
      }
    },
    {
      "createItem": {
        "item": {
          "title": "This product has multiple options, like different sizes or colors",
          "questionItem": {
            "question": {
              "choiceQuestion": {
                "type": "RADIO",
                "options": [
                  {
                    "value": "Yes",
                    "goToSectionId": "CHANGE IT WITH YOUR ITEMID FOR SECTION 2: TYPE OF VARIATION"
                  },
                  {
                    "value": "No",
                    "goToAction": "SUBMIT_FORM"
                  }
                ]
              }
            }
          }
        },
        "location": {
          "index": 8
        }
      }
    },
    {
      "createItem": {
        "item": {
          "title": "Section 2: Type of Variation",
          "pageBreakItem": {}
        },
        "location": {
          "index": 9
        }
      }
    },
    {
      "createItem": {
        "item": {
          "title": "Type of Variation",
          "questionItem": {
            "question": {
              "required": true,
              "choiceQuestion": {
                "type": "RADIO",
                "options": [
                  {
                    "value": "List Variation"
                  },
                  {
                    "value": "List Variations (Non SKU)"
                  },
                  {
                    "value": "Text Variation"
                  }
                ]
              }
            }
          }
        },
        "location": {
          "index": 10
        }
      }
    },
    {
      "createItem": {
        "item": {
          "title": "Section 3: Options",
          "pageBreakItem": {}
        },
        "location": {
          "index": 11
        }
      }
    },
    {
      "createItem": {
        "item": {
          "title": "Option",
          "questionItem": {
            "question": {
              "choiceQuestion": {
                "type": "RADIO",
                "options": [
                  {
                    "value": "Pack Size"
                  },
                  {
                    "value": "Size"
                  },
                  {
                    "value": "Color"
                  },
                  {
                    "value": "Material"
                  },
                  {
                    "value": "Weight"
                  },
                  {
                    "value": "Select this if you want to enter a different option"
                  }
                ]
              }
            }
          }
        },
        "location": {
          "index": 12
        }
      }
    },
    {
      "createItem": {
        "item": {
          "title": "Section 4: Custom Option Name",
          "pageBreakItem": {}
        },
        "location": {
          "index": 13
        }
      }
    },
    {
      "createItem": {
        "item": {
          "title": "Custom Option Name",
          "questionItem": {
            "question": {
              "textQuestion": {}
            }
          }
        },
        "location": {
          "index": 14
        }
      }
    },
    {
      "createItem": {
        "item": {
          "title": "Section 5: Option Values",
          "pageBreakItem": {}
        },
        "location": {
          "index": 15
        }
      }
    },
    {
      "createItem": {
        "item": {
          "title": "Option Values (separate the values using comma e.g. option1,option2,option3)",
          "questionItem": {
            "question": {
              "textQuestion": {}
            }
          }
        },
        "location": {
          "index": 16
        }
      }
    }
  ]
}

This code meets the requirements you listed in your question.

If the question is,Does this product have multiple options, like different sizes or colors? and the response is Yes, it should direct to the type of variation with the three options (List Variation, List Variation (Non-SKU), and Text Variation). By selecting any of these, you will be redirected to Option, and then to Custom Option.

However, if No is selected, it will direct you to submit the form.

Sample Output:

Reference:

Option

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật