Pull down Box with pre defined list in code
Dear All,
Can someone help with code for a pre-defined pull down list with items in code. The items would be defined in the code on the incident form. The pull down list would then be used to populate a text box.
I do not want to pull a list from Service Manager.
Daniel
Best Answer
-
Nicholas_Velich Cireson Consultant Ninja IT Monkey ✭✭✭✭
Hi Daniel,
That is certainly possible, but would take a bit of effort to accomplish. In general, I would approach it via the following high-level steps:
1) Values defined either in code as you stated, or even better, pulled into that code via a more manageable xml/csv/json type file
2) JQuery/JavaScript to add a new list picker to the form, using the values pulled in above
3) onChange() behavior to populate a specific text box upon selection
Note- steps 2 + 3 could be combined into a different type of input box, such as a typeahead. Both options would be viable.
If you would like some assistance from the Cireson Professional Services team to accomplish this, please reach out!
Thanks,
Nick
5
Answers
Hi Daniel,
That is certainly possible, but would take a bit of effort to accomplish. In general, I would approach it via the following high-level steps:
1) Values defined either in code as you stated, or even better, pulled into that code via a more manageable xml/csv/json type file
2) JQuery/JavaScript to add a new list picker to the form, using the values pulled in above
3) onChange() behavior to populate a specific text box upon selection
Note- steps 2 + 3 could be combined into a different type of input box, such as a typeahead. Both options would be viable.
If you would like some assistance from the Cireson Professional Services team to accomplish this, please reach out!
Thanks,
Nick