- This topic is empty.
- 04/30/2012 at 12:20 pm #4189
I have one choice column in QListForm. In that, 10 values are there.
How can we restrict the user to select any 5 values and if he select 6 th one we are showing validation message(u can select 5 values only).
We also validate to select atleast one selection.
- 04/30/2012 at 12:20 pm #5285
You need to write a custom action to validate the data. We provide a sample project (check your QWP installation folder for Sample Code folder) that can be used to perform your validation.
When you select a checkbox of a choice field the data is stored in the following format:
where One, Two, Three… are the choice values.
You just need to parse his string and enforce your validation for this (any 5 values).
Please check the docs (see Custom action Help section) for more details.
If you have any questions please let me know.
You must be logged in to reply to this topic.