Dynamic Drop-downs | Cliq (2024)

The drop-down menu is a clear method of showing a list of data, allowing users to pick their choice from the list. This field can be categorized into two typesbased on the choice of selection types offered.

Note:

For optimum results configure dynamic_select field only when the search results are more than 100. Incase of results lesser than 100, use the select field.

Attribute NameData TypeDescription

type*

string
Value should be dynamic_select
The type of input field. For dynamic drop-down menu type must be dynamic_select

placeholder*

string (100)Sample field value displayed to the user that describes the expected value of the input field.

name*

string (50)A unique identifier for the field. On form submission, the value defined for this key will be available in the function associated with the form.

hint

string (100)Provides a brief description of the field's purpose and the expected input.

label*

string (50)The field's display name.
mandatorybooleanDefines if the field's requisite is mandatory or not.
Default value considered is true
options*array

An array of JSON object following the structure label and value. This attribute will be considered only when the datasource is list. Max no of elements - 100
{
label : $label, (Maximum allowed characters: 100)
value : $value (Maximum allowed characters: 20)

(or)

options : [ { label, value } ]
}
Note: The first level of options can have another set of options.

valuestring

Provide a default inputfor the field by giving the value of any drop-down list item.

Note: The value provided must match the value fields of any drop-down menu item.

multipleboolean

Define if your drop-down should be a single select or multi select field. For all multi select fields, multiple should be set as true.

max_selectionsinteger
Maximum selections: 10

Defines the number of options that a user can choose from the drop-down.

Note: Value for this field defaults to 1 in case of single select drop-downs.

refresh_cutoffinteger
Default: 5

The number of drop-down items to be populated when the search results are less than this count.

Syntax

{ "type": "dynamic_select", "name": "", "label": "", "hint": "", "placeholder": "", "mandatory": true, //default value is set as true "value": "", "options": [ { "label": "", "value": "" } ]}
Dynamic Drop-downs | Cliq (2024)
Top Articles
Latest Posts
Article information

Author: Amb. Frankie Simonis

Last Updated:

Views: 6546

Rating: 4.6 / 5 (56 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Amb. Frankie Simonis

Birthday: 1998-02-19

Address: 64841 Delmar Isle, North Wiley, OR 74073

Phone: +17844167847676

Job: Forward IT Agent

Hobby: LARPing, Kitesurfing, Sewing, Digital arts, Sand art, Gardening, Dance

Introduction: My name is Amb. Frankie Simonis, I am a hilarious, enchanting, energetic, cooperative, innocent, cute, joyous person who loves writing and wants to share my knowledge and understanding with you.