Pegar caracteres de dois campos

  • welenson
    Perguntado em 17 de junho de 2024 às 11:00

    Bom dia, seria possivel pegar caracteres de 2 campos?

    Tenho um campo de Código e outro campo com o nome do Condominio.

    Codigo: #hidden_14

    Condominio: #input_116

    Gostaria de pegar o conteudo do campo Codigo e os 3 primeiros caracteres do campo condominio e inserir no campo;

    Codigo Ajustado: #input_131

    Eu vou ter que disponibilizar acesso via planilha para terceiros, a minha ideia é não deixar eles acessarem pelo codigo sequencial, para não inserir qualquer codigo e ver dados que não são pertinentes a eles.

    Segue o link do formulario.
    https://www.jotform.com/build/233603687069060#preview


    Obrigado!






  • Harshad_P Jotform Support
    Respondido em 17 de junho de 2024 às 11:46

    Hi Weleson,

    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 understand you want to copy the first 3 characters from 3.1-Condominio Ajuste Nome (#input_116) and Codigo (#input_14) combine them and pass them to Adjusted Code #input_131. This is possible by using the Substring Widget and Conditions. Let me show you how:

    1. In Form Builder, click on +Add Form Element.
    2. Under the Widget tab, search for the substring widget and add it to the form.
    3. Click on little wand icon.
    4. Under the Source ID add #input_116.
    5. Then add 0 for the Substring Start and 3 for the Substring End.
    Pegar caracteres de dois campos Image 1 Screenshot 30
    Once you have done that. Let set up conditions to copy the value from the fields.

    1. In Form Builder, click on Settings in the orange navigation bar.
    2. Select conditions from the left panel.
    3. Click on Add New Condition and select Update/Calculate Field.
    4. Set up the condition shown in my screencast below.
    Pegar caracteres de dois campos Image 2 Screenshot 41
    Give it a try and let us know how it goes.

 
Sua Resposta