Small code error

  • Profile Image
    AA_C
    Asked on March 03, 2014 at 01:10 PM

    Hi,

    I am using a form with PayPal.

    I copied the code into my webpage and noticed the following where I have my radio option buttons.

    Where the &nbsp is placed it is missing the ; after &nbsp, on line 370, see below. 

    <span class="form-product-item hover-product-item"><input class="form-radio validate[required]" type="radio" id="input_12_1003" name="q12_input12[][id]" value="1003" />

                <label for="input_12_1003">

                  Address Change<span class="form-product-details"><b>

                  <span class='freeCurr' style='display:none;'>&nbsp$</span>

                  <span id="input_12_1003_price">&nbspFree</span>

                  <span class='freeCurr' style='display:none;'>&nbspCAD</span>

    I went back and had a look at another form and found the same thing there.
    The name of the forms in question are:
    Dog ID Card Registration Form  and its French equivlent,
    Fomulaire d'enregistrement - carte d'identite du chien
    Because you use style='display:none;' the code will not appear. Perhaps you have a purpose for doing this. Please explain.
    Thank you,
    Bob
  • Profile Image
    TitusN
    Answered on March 03, 2014 at 02:54 PM

    Thats quite odd.

    The the wrong syntax would render the code broken.

    The code seems to have defaulted to HTML entities when the source code was copied into your website - here's how it should look:

    Go ahead and change it to look as above illustration (click to enlarge)

    about the 'display:none;', the code is applied to a the "freecurr" span class when the item on sale has no value - such that the price is displayed as free, rather than #CAD

    Does that clarify things? Please let us know.

     

  • Profile Image
    AA_C
    Answered on March 03, 2014 at 04:28 PM

    Well it may have rendered it broken if I had not fixed it before I posted it. You should know this happens each and every time. You may want to look into it.

     

    Thanks

    Bob

  • Profile Image
    TitusN
    Answered on March 03, 2014 at 04:36 PM

    Thanks for the feedback Bob,

    We will definately look into it.

    Clarify something for us so that we can attempt to reproduce the problem:

    Do you use any tools to edit your site - or do you use a text editing tool over FTP?

    Please let us know.

  • Profile Image
    AA_C
    Answered on March 03, 2014 at 04:44 PM

    Hi Titus,

    First I select the embed form wizard. I then select Dreamweaver and copy the code displayed in the window into Dreamweaver and edit the code to suite my needs. I also use Expression Web and do exactly the same thing. The error appears for both editors. I noticed it some months back and let it go. When it apperared again I decided to let you know.

    I hope this information helps.

    Thanks,

    Bob

  • Profile Image
    TitusN
    Answered on March 03, 2014 at 04:54 PM

    Hi Bob,

    It certainly does, thank you for the feedback, and have forwarded your observation to our developers.

  • Profile Image
    strandverktyg
    Answered on October 06, 2016 at 07:58 AM

    Hello!

    Had the same problem with none breaking spaces after copying the source code. About half of the "&nbsp;" missed the semicolon on the end. Solved it by simply adding ; to every &nbsp but that's quite troublesome to do every time I need to change something on the form.

    Just wanted to let you know the problem still exists, found the thread searching for a bug.

    Regards,

    Hampus

  • Profile Image
    Chriistian
    Answered on October 06, 2016 at 09:40 AM

    Hi strandverktyg,

    I have moved your concern on a separate thread so we can better assist you. You can check the thread here: https://www.jotform.com/answers/953015. We will attend to your concern on that thread accordingly.

     

    Regards.