How can I customize the HTML text of a Heading

  • Profile Image
    AmSteve
    Asked on September 10, 2013 at 02:43 PM
    In the spirit of pre-populating form fields by constructing a querystring to append to a form's URL, I'd like to be able to customize the text displayed in Form's Header:
    <h2 id="header_13" class="form-header"> Click to edit this text... </h2>

    I presume this can be handled by a bit of jQuery but how can I know that the field is availible and visible to jQuery? (I'm using a popup window opener and yes, I can ensure that the ID will be unique on the page.

    thx much
  • Profile Image
    EliezerN
    Answered on September 10, 2013 at 03:52 PM

    Thanks for contacting us.

    When you say  "I'd like to be able to customize text displayed in Form's header" are you refering that you want to give a customized style to the header text, because that could be done by injecting some CSS code. if that is the case, could you please share with us the link of your form so that we can give you the proper assistance?

    However if I'm misunderstanding your question, could you please give us further information about what you are trying to achieve, in that way we'll be able to assist you better.

    Thanks for using Jotform.

  • Profile Image
    AmSteve
    Answered on September 10, 2013 at 04:15 PM

    Thanks for the reply. No; I want to change the words. something like:

    $("#header_13").text('My New Text');

    But how to know the popup is 'popped' and that jquery can find the ID?

  • Profile Image
    Cesar
    Answered on September 10, 2013 at 06:28 PM

    I'm doing abit of research to your questiom. Maybe this thread has more information that may be useful to what you are trying to achieve.

    Let us know if you need additional assistance. Thank you.

    How to update fields via a popup box