TWIRED Posted November 25, 2016 Report Share Posted November 25, 2016 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 . Quote Link to comment Share on other sites More sharing options...
0 TWIRED Posted November 25, 2016 Author Report Share Posted November 25, 2016 read below Quote Link to comment Share on other sites More sharing options...
0 TWIRED Posted November 25, 2016 Author Report Share Posted November 25, 2016 read below Quote Link to comment Share on other sites More sharing options...
0 TWIRED Posted November 26, 2016 Author Report Share Posted November 26, 2016 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 Quote Link to comment Share on other sites More sharing options...
0 TWIRED Posted November 26, 2016 Author Report Share Posted November 26, 2016 read above - not yet solved thanks Quote Link to comment Share on other sites More sharing options...
Question
TWIRED
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
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.