Count number of selections in a choice field

Forums Classic DFFS Count number of selections in a choice field

Viewing 2 reply threads
  • Author
    Posts
    • #16474
      Bryan Waldrop
      Participant

      Count number of selections, reveal next after at least 2 selections are made

      Hi Alex,

      I need a custom js function to count the number of selection made in a sharepoint choice column/field.

      Ultimately, I want use a rule that waits to reveal the next form field until after 2 selections are made in this choice field.

      Thanks!

      • This topic was modified 6 years, 11 months ago by Bryan Waldrop.
    • #16512
      Alexander Bautz
      Keymaster

      Hi,
      Sorry for the delay – use this line of code:

      $("#dffs_YourColumnName input:checkbox:checked").length

      Change YourColumnName for your fieldinternalname.

      You should be able to set up a trigger with “Custom JavaScript function” as trigger, and use the above line in a custom function – returning true or false if the selection length is OK or Not OK.

      Alexander

    • #16560
      Bryan Waldrop
      Participant

      Works brilliantly thank you!

Viewing 2 reply threads
  • You must be logged in to reply to this topic.