Como colocar o CPF como campo exclusivo?/How to use CPF(Phone Element) as a unique field in the form

  • recepcaoiba1sem
    Perguntado em 29 de junho de 2023 às 00:22

    No formulário que fiz mostrou vários campos, mas não tem a opção de selecionar o CPF como campo exclusivo.

    Jotform Thread 5285197 Screenshot
  • Martin_A Jotform Support
    Respondido em 29 de junho de 2023 às 05:55

    Hi First Week IBA Reception,

    Thank you for contacting Jotform Support. Our Portuguese Support is currently unavailable so I will respond to your question in English. If you prefer to receive a reply in your native language, let us know so we can forward this to the relevant team but it might take some time to receive a response. Please note that I've used a translation tool for your request.

    I understand that you want to use the CPF as a unique field in your form.

    Unfortunately, the Unique Field feature does not work for the Phone Element, which is what the CPF field uses. However, there is a workaround that you can try to achieve this functionality.

    You can add a Short Text Element to your form and pass the values from the CPF field to this element using the Update/Calculate Field condition. Then, you can set this Short Text Element as a Unique Field and hide it from the form.

    Here are the steps you need to follow:

    • Add a Short Text Element to your form and name it something like “CPF Values”.

    Como colocar o CPF como campo exclusivo?/How to use CPF(Phone Element) as a unique field in the form Image 1 Screenshot 40

    • Go to Settings and select Conditions.
    • Add a new Update/Calculate Field condition.
    • Create the following condition:

    Como colocar o CPF como campo exclusivo?/How to use CPF(Phone Element) as a unique field in the form Image 2 Screenshot 51

    • Go back to Settings and click on Form Settings.
    • Select the "CPF Values" from the Unique Field.

    Como colocar o CPF como campo exclusivo?/How to use CPF(Phone Element) as a unique field in the form Image 3 Screenshot 62

    This way, your form will check the CPF values entered by your users and prevent duplicate submissions based on this field. You might also what to check out our guide about How to Set up the Unique Field Limit Using Multiple Fields if you want to set multiple field values as form limits.

    Give it a try and let us know how it goes.

  • recepcaoiba1sem
    Respondido em 29 de junho de 2023 às 08:33

    Muito obrigada, consegui configurar!
    Deus te abençoe!