Calculated Fields for Injecting text into a Text field

  • agualandri
    Asked on August 13, 2019 at 3:58 PM

    I see that you can map data from form fields into text fields, but what about being able to map pre-determined text into a text field? So in other words, I have some variable text I'd like to insert into a text field depending on what value is selected from a different, earlier, drop down field.

  • Victoria_K
    Replied on August 13, 2019 at 4:14 PM

    As far as I understand, you would like to pass different text into a field depending on user's answer, right? 

    This would be possible if you choose 'Calculate a field's value' option for condition. Then, you can type in text to be passed to that field. For example:

    How-to-Insert-Text-or-Calculation-into-a-Field-Using-Conditional-Logic

    How-to-Manipulate-Text-String-with-Conditions-and-Calculation

    Calculated Fields for Injecting text into a Text field Image 1 Screenshot 20

  • agualandri
    Replied on August 13, 2019 at 4:34 PM

    Ok, great. But then how do I format the text going into the text field as part of the text I want to be bold and part not?

  • Richie JotForm Support
    Replied on August 13, 2019 at 4:45 PM

    To clarify, do you want to edit the font of the the populated text?

    You can edit the font of your form however, we cannot edit the font of each individual values to be passed.

    You can go to your Form Designer>Styles and edit your font.

    Calculated Fields for Injecting text into a Text field Image 1 Screenshot 20

    We can also use custom CSS to edit the font in the text area.

    May we know the form in question?