How to fix misspelling in the form's code?

  • dogood33
    Asked on October 6, 2016 at 3:27 PM

    Hello, there is a misspelling in the code of this form and I can't figure out how to fix it.

     

    Its the word Secound (should be second) found here:

    "replaceText":"secoundLine",

  • Nik_C
    Replied on October 6, 2016 at 6:41 PM

    When I inspected your form's code I found out that it is in JavaScript and it is name of tag of the second field:

    How to fix misspelling in the forms code? Image 1 Screenshot 20

    So you can change them right in the code.

    If you have any further questions please let us know.

    Thank you!

  • dogood33
    Replied on October 7, 2016 at 1:08 PM

    I see it in the code, how do I change that, I went to view it but couldn't change it.

     

  • Kiran Support Team Lead
    Replied on October 7, 2016 at 3:28 PM

    I see that the height of the Text fields on the form are set to zero and so the fields are not being displayed on the form. You can increase the height of these text fields from the CSS injected temporarily and then change the text as required and then set back the height to zero. Please see the screencast below:

    How to fix misspelling in the forms code? Image 1 Screenshot 20

    Hope this information helps! 

  • dogood33
    Replied on October 17, 2016 at 3:51 PM

    I tried to follow this and messed it up completely.

     

  • dogood33
    Replied on October 17, 2016 at 3:57 PM

    The label {firstLine} and {secondLine} are showing and won't change when you type in the field

  • Kevin Support Team Lead
    Replied on October 17, 2016 at 6:54 PM

    I have checked your form and I can see you have indeed corrected the misspelling now; however,, I can see what you're referring about the text not being updated once text is entered in the correct text box. 

    This is because the first line and second line text boxes names have changed, here are some screenshots of it: 

    How to fix misspelling in the forms code? Image 1 Screenshot 30

    How to fix misspelling in the forms code? Image 2 Screenshot 41

    You will need to either change the "Unique Name" or the name you've used in your Text fields, to get the option of the Unique Name you need to click on the field and then on the gear icon, once on the field settings go to the Advanced tab and click on the field details button. 

    However, I would suggest you to better copy the fields names and paste it in the Text field in order to avoid the same inconvenient you're currently experiencing. 

    Please do note that to get each Text field in the form builder you will need to temporary increase the fields height to 100px, as explained above by Kiran, you will notice that the form will not look the same as it currently looks, but after fixing the current issue with the data not passing to the text fields you need to set the height to 0 again so the form looks as you want. 

    Here is my cloned form of yours where I did the changes, please take a look: https://form.jotform.com/62906753304961 

    Hope this helps.