How to Insert Text Into a Field Conditionally?

  • welenson
    Perguntado em 24 de maio de 2024 às 15:17

    Boa tarde,

    Gostaria de quando o usuario preencher um campo eu atualizar outro campo com o valor que eu definir, conforme o exemplo abaixo:

    Campo 1: Usuario vai preencher o campo:

    Pq das Flores ou Parque Flores

    Para o campo 2 eu gostaria de fazer um ajuste, por exemplo, se Campo1 contém "Flores" o campo 2 ser preencido automaticamente com "Parque das Flores", pois preciso usar sempre o mesmo nome nesse campo.


  • Cyrus Jotform Support
    Respondido em 24 de maio de 2024 às 15:54

    Hi welenson,

    Thanks for reaching out to Jotform Support. Our Portuguese Support agents are busy helping other Jotform users right now, so I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in Portuguese, let us know and we can have them do that. But, it might take a while until they're available again.

    Now, coming back to your question, I understood you wanted a specific field to automatically be filled in with the word of your choice depending on the user's answer? If so, I suggest using the Update/Calculate field conditional. Let me show you how to do it:

    1. In Form Builder, go to Settings on top.
    2. Select Conditions in the left menu.
    3. Under New Conditions, select Update/Calculate Field.

    How to Insert Text Into a Field Conditionally? Image 1 Screenshot 50
    4. Configure your condition depending on the requirements. Check out my sample below:

    How to Insert Text Into a Field Conditionally? Image 2 Screenshot 61
    5. Once done, click on Save below.

    How to Insert Text Into a Field Conditionally? Image 3 Screenshot 72
    That's it. Check out below screencast for my results:

    How to Insert Text Into a Field Conditionally? Image 4 Screenshot 83
    If this is not exactly what you’re looking for, can you explain a bit more so I can help you better?

    Let us know if there’s anything else we can help you with. 

  • welenson
    Respondido em 24 de maio de 2024 às 18:23

    Era exatamento isso, obrigado!!