- This topic is empty.
- AuthorPosts
-
- 04/30/2012 at 12:20 pm #4189
AnonymousParticipantHi,
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.
–Bab
- 04/30/2012 at 12:20 pm #5285
AnonymousParticipantHi Bab,
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:
;#One;#Two;#Three;#
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.
-
- AuthorPosts
You must be logged in to reply to this topic.