DropDownListComponent that can also prompt for user input
Hello All
I am working on a Workflow that I have a Ship To field that I have setup as a dropdownlistcomponent. The user hits the drop down and can see the various ship to locations
All works fine but the problem I have is we have an Other choice which is where a user can enter a different ship to address than the ones we have listed.
How can I still use the drop down list but when a user chooses other it will prompt them for the address that they can enter and it be saved to be used in the workflow.
Thanks for any help on this.
One cheap way...
You could put a value in your drop down of other. When the select value of your drop down was other, you could enable a text box for them to enter the value.
I have done something similar with the AJAX controls.
To expand on the last suggestion...
...you can edit the Dropdownlist control to accomplish this. Next to Custom Events, choose Add / Hide Control If Value. You'll have to add one for every possible combination of values which should cause the text box to be hidden. The text box, of course, asks the end-user to give the "Other" details.
Another option is to edit the control you want to hide (the text box), and where it says Visible: True, you can put in a dynamic model to evaluate that on the fly instead of hard-coding it to true. Your controls in this case could be hosted in a DynamicUpdatePanelComponent (an AJAX frame) so that when the value of the dropdownlist changes, it will hide or not hide the text box depending on the logic in your dynamic model, which will make Visible equal to True or False. To make this work, the dropdownlist component would need to be set to Post Value on Form Change as well (that's what posts back the AJAX update panel).
Would you like to reply?
Login or Register to post your comment.