• Hi

    I am working on creating a form where students can submit their choices from 1 to 56 on what work placements they prefer.

    There will be 56 individual choices, and the students must fill in all of them, from their 1st Choice to their 56th Choice.

    The Form I have created has the fields listed like this:

    A1 [number* number-a1 min:1 max:56]
    A2 [number* number-a2 min:1 max:56]
    A3 [number* number-a3 min:1 max:56]
    A4 [number* number-a4 min:1 max:56]

    How can I validate the form to ensure that a student does not enter the same choice number across multiple placements?
    eg. They enter the first choice a number of times, instead of only once.

    Any help would be really appreciated ??

Viewing 1 replies (of 1 total)
  • Thread Starter gracetec

    (@gracetec)

    As each field is validated to ensure the number entered is within the range (1 to 56), I thought that I could validate to ensure there are no duplicates by adding up all the number to ensure it is a total of 1596 eg. 1+2+3+4+5 etc.

    Could this be done? Please advise, thanks in advance ??

Viewing 1 replies (of 1 total)
  • The topic ‘Contact Form 7 – Check [number] Value is Unique on a Form’ is closed to new replies.