Jump to content
  • 0

MULTI-SELECT LISTBOXES


TWIRED

Question

Pseudo Code - REQUIREMENT FOR  Multi-Select Listbox in a Submission Form

ON FIRST TIME  LOAD -

Read the values from the table field into a variable

If field is blank - then dont do anything

Just populate the listbox from default element custom values


 

ON SUBMIT (SAME PAGE) -MULTIPLE VALUES SELECTED

Store the “selected value”s from listbox in an array in a hidden element

or a temp persistent variable or maybe a hidden virtual field

 

ON ERROR - REFRESH

If theres an error like other required fields are not filled in on form (The values are not yet committed to the database)

Then

Load the hidden element “selected values” array

Match the variables array values with the drop down list element custom values

and highlight or show them as selected .

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Pseudo Code - REQUIREMENT FOR  Multi-Select Listbox in a Submission Form

ON FIRST TIME  LOAD -

Read the values from the table field into a variable

If field is blank - then dont do anything

Just populate the listbox from default element custom values


 

ON SUBMIT (SAME PAGE) -MULTIPLE VALUES SELECTED

Store the “selected value”s from listbox in an array in a hidden element

or a temp persistent variable or maybe a hidden virtual field

 

ON ERROR - REFRESH

If theres an error like other required fields are not filled in on form (The values are not yet committed to the database)

Then

Load the hidden element “selected values” array

Match the variables array values with the drop down list element custom values

and highlight or show them as selected

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.

Guest
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.

Loading...
×
×
  • Create New...