Jump to content
  • 0

Cascading Dropdown off of autocomplete



2 answers to this question

Recommended Posts

  • 0

Cascading dropdown doesn’t work if the parent field is an “autocomplete†or a “textfieldâ€. It can be achieved by coding

1. Create a field(FieldName1) as text type for inserting

2. Insert a HTML Block. For passing the parameter, create a button to trigger

<button id="button" type="button">Click Me!</button>

3. Create a virtual dropdown field(cbParamVirtual1) as "Hidden" to receive the value from the previous field, this is the parent dropdown

4. Create a Cascading Dropdown to pull the related values

5. Insert the following code to pass the value from Text field to Virtual Dropdown field.

function drop(){
document.getElementsByName('cbParamVirtual1')[0].value = document.getElementsByName('FieldName1')[0].value;
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...