• Resolved Agencia 221B

    (@agencia221b)


    Hi there

    I’m asking for Social Security number in my form, but I need that forminator only allow one submission per Social Security number.

    Is that possible? If yes, how can I do it?

    Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @agencia221b

    I hope you are doing good today.

    1. If I get this right, if the end user will submit a form with a unique ID it will not allow him to send it again?

    2. Does the Social Security number has always same amount of signs or it can be different?

    We had such request in past and some solution was provided for that. Please let us know about above data so I could ping our SLS Team to review this more.

    Kind Regards,
    Kris

    Thread Starter Agencia 221B

    (@agencia221b)

    Hi Kris!

    1. Exactly. It is a registration form, so each user can register one time, based on the unique email and/or unique CPF.

    2. Here in my country our social ID it’s called CPF, and it has always 11 digits. I set a text field with 11 digits limit and it is working.

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @agencia221b

    I hope you’re well today!

    I think this code should work for you:

    https://gist.github.com/wpmudev-sls/a516633a168dd4d5c9bc9cdab2e4cc9d

    Would you give it a try?

    To add it to the site:

    1. create an empty file with a .php extension (e.g. “formiantor-unique-number-registration.php”)

    2. copy and paste code into it and modify it

    a) in this line replace numbers with a number ID of your form (the number that you see in form’s shortocde)

    $your_list_forms = [123,456];

    b) in this line set an ID of the filed that contains the CPF on fhe form; it’d be probably text-1 but check it in form editor (replace email-1 with your field ID)

    $your_unique_field_name = 'email-1';

    c) in this line set your error message text

    $your_error_msg = 'The email already sumitted';

    3. save the file and upload it to the “/wp-content/mu-plugins” folder of your site’s WordPress installation

    It should work out of the box.

    Best regards,
    Adam

    Thread Starter Agencia 221B

    (@agencia221b)

    Omg, guys! Worked flawlessly.

    You guys rock, best form plugin and best support.

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘One submission for Social Security Number’ is closed to new replies.