Help in passing HTML code through the...

User 187934 Photo


Senior Advisor
20,271 posts

From my very first post
Eric Rohloff wrote:
The form builder only knows which variables are being used if you add them to your form by using the built in elements. What you'll need to do is keep the element holding the html hidden with some css.
#myhtml{
display:none;
}

All variables have to added to the form through the form builder app for submission. You can have them hidden as long as you don't use the built in conditionals and add a html element with the proper css to keep them hidden. You need to do is either use Javascript or JQuery to pass the values to the input in the form.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2062767 Photo


Registered User
166 posts

I am really struggling with this - what am I missing?

I have now put the 1st dynamic HTML in as a text field.

Then have this script:
<header id="secondHeader"></header>
<script>
document.getElementById("secondHeader").innerHTML=document.getElementById("item12_text_1").innerHTML;</script>
Do I put that under the text field as an HTML element or in the confirm settings in WFB?
What ever I do it does not seem to work.

www.heylisflorist.co.uk - My Florist Shop.
www.woodentopstoys.co.uk - My Wooden Toy Shop.

I use CoffeeCup HTML Editor, WIS, Direct ftp, Sitemapper, Website Insite & RED Personal to create my websites.

Send your parcels with Despatch Bay! Signup using this code and get £10.00 worth of free shipping http://despatchbaypro.com/s/1H431
User 187934 Photo


Senior Advisor
20,271 posts

Any thing you need as a passed variable needs to be done on the form.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2062767 Photo


Registered User
166 posts

Doesn't work.

Could you give me an example pleeeeease. :D
www.heylisflorist.co.uk - My Florist Shop.
www.woodentopstoys.co.uk - My Wooden Toy Shop.

I use CoffeeCup HTML Editor, WIS, Direct ftp, Sitemapper, Website Insite & RED Personal to create my websites.

Send your parcels with Despatch Bay! Signup using this code and get £10.00 worth of free shipping http://despatchbaypro.com/s/1H431
User 187934 Photo


Senior Advisor
20,271 posts

This is one way that may lead you down the correct path.:)
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script>$( document ).ready(function() {
$( "#item12_text_1" ).val( "<strong>Hello</strong>" );
});</script>
<style>#item12_text_1{
display:none;
}
</style>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2062767 Photo


Registered User
166 posts

This is what I was hoping for - Hello
This is the result - not quite what I am looking for.
http://www.heylis.co.uk/images/eric_HTML.png

I think either this is not possible or we are on cross wires. :/

My HTML code IS passing to the form correctly using my function but NOT displaying correctly!
www.heylisflorist.co.uk - My Florist Shop.
www.woodentopstoys.co.uk - My Wooden Toy Shop.

I use CoffeeCup HTML Editor, WIS, Direct ftp, Sitemapper, Website Insite & RED Personal to create my websites.

Send your parcels with Despatch Bay! Signup using this code and get £10.00 worth of free shipping http://despatchbaypro.com/s/1H431
User 187934 Photo


Senior Advisor
20,271 posts

I'm confused are you trying to pass a variable to the form or from the form to another page?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2062767 Photo


Registered User
166 posts

You're confused :lol:

Forget the variables, they are going through to the form no problem. It is the display that is the problem.

eg. If I passed <strong>Hello</strong> to the form the confirmation message (same page of new page) displays
"<strong>Hello</strong>"

It should be Hello (in bold with no <'s, >'s or /'s etc. I don't know how clearer I can be :/

www.heylisflorist.co.uk - My Florist Shop.
www.woodentopstoys.co.uk - My Wooden Toy Shop.

I use CoffeeCup HTML Editor, WIS, Direct ftp, Sitemapper, Website Insite & RED Personal to create my websites.

Send your parcels with Despatch Bay! Signup using this code and get £10.00 worth of free shipping http://despatchbaypro.com/s/1H431
User 187934 Photo


Senior Advisor
20,271 posts

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script>$( document ).ready(function() {
$( "#item12_text_1" ).val( "Hello" );
});</script>
<style>#item12_text_1{
display:none;
}
</style>

:P
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2062767 Photo


Registered User
166 posts

Is that suppose to be funny?

I am passing the data through as HTML.
www.heylisflorist.co.uk - My Florist Shop.
www.woodentopstoys.co.uk - My Wooden Toy Shop.

I use CoffeeCup HTML Editor, WIS, Direct ftp, Sitemapper, Website Insite & RED Personal to create my websites.

Send your parcels with Despatch Bay! Signup using this code and get £10.00 worth of free shipping http://despatchbaypro.com/s/1H431

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.