Loading...

cheque box selection restriction

cheque box selection restriction

  • This topic is empty.
Viewing 1 reply thread
  • Author
    Posts
    • #4189
      Anonymous
      Anonymous
      Participant

      Hi,

      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

    • #5285
      Anonymous
      Anonymous
      Participant

      Hi 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.

Viewing 1 reply thread

You must be logged in to reply to this topic.