Parameters: Select w/ customValue

Is it possible to use customValue with the select type parameter? I managed to get the custom entry field to display when changing {{custom}} to {{customValue}}, but can’t seem to keep it available.

"IDType" : {
    "type"    : "select",
    "label"   : "Type of ID Required",
    "initial" : "Tax ID",
    "options" : [
      { "value" : "Tax ID", "label" : "Tax ID" },
      { "value" : "National ID", "label" : "National ID" },
      { "value" : "Tax ID or National ID", "label" : "Tax ID or National ID" },
      { "value" : "ID Number", "label" : "ID Number" },
      { "value" : "{{custom}}", "label" : "Custom" }      
    ],
    "customValue": "Tax ID"    
  }

Hey @splaquet,

Thanks for writing in!

You will have to apply condition parameters. For example:

{
  "IDType" : {
    "type"    : "select",
    "label"   : "Type of ID Required",
    "initial" : "Tax ID",
    "options" : [
      { "value" : "Tax ID", "label" : "Tax ID" },
      { "value" : "National ID", "label" : "National ID" },
      { "value" : "Tax ID or National ID", "label" : "Tax ID or National ID" },
      { "value" : "ID Number", "label" : "ID Number" },
      { "value" : "Custom", "label" : "Custom" }      
    ]
  },
  "custom" : {
    "label"       : "Custom Value",
    "type"        : "text",
    "initial"     : "Custom Value",
    "placeholder" : "Specify a custom value",
    "when"    : "eq(IDType, 'Custom')"
  }
}

image

image

For more details, kindly check out this documentation:

Best Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.