Layout of form changes from Form...

User 38401 Photo


Senior Advisor
10,951 posts

I think we do get it Chris, but the program just doesn't have that capability at this time. You can definitely go put in a suggestion on the suggestions forum for this program, it would be welcomed as you're not the first to have suggested this both in and out of the forums. I too think it would be a great addition to the program to be able to do that, but unfortunately if you want that to be done it's going to take some external scripting to do so.

Now if someone is wanting to help you with that, that's cool, there's probably a good handful of programmers in here that have a clue how to do that. :)
User 2659348 Photo


Registered User
119 posts

Thanks Jo Ann. I'm glad to know others would find this feature useful. And yeah, I did some external stuff to get something else to work how I wanted, and I certainly gave this issue the old college try externally too. But it is beyond me. I hate not knowing how to do something. :cool:

And I do appreciate all of the help you all have given me and the help anyone may still offer. The only thing I didn't really think of was a simple re-wording of the question on my form. Something more like what Chef-Scott put in his example form. I was so stuck on the "yes -no" selections and his example made me realize that re-wording it will do what I want all in one shot. I don't think he or I realized he helped me so well until this very moment! :)

I'll try that for now. But I'm still all ears if anyone has a work-around to the problem.
Thanks!
Knowing is half the battle
User 187934 Photo


Senior Advisor
20,271 posts

"Select an Option - Ship to Billing Address" because it is a named element that was selected (had a 'result').
This will not show up if you leave that element out of the custom results instead of using [_form_results_];)
Take a look at this post. You can do some cool things with JQuery that the form won't do already.
http://www.coffeecup.com/forums/web-for … _id=223846
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 2659348 Photo


Registered User
119 posts

That looks like it would work. But not on a Plain Text element that has no user input.

So... do you think I could use jQuery to get my email to show me some text in a div - some text that doesn't exist in any element anywhere? Some text that I just make up & tell to the script?

For instance:
$('#item42_0_radio').change(function(){
if($('#item42_0_radio').is(':checked')){
$....then show me these words: blah blah blah

My Shipping Options radio button has 2 options - yes & no. I only need my email to show me something if "yes" was selected. I don't need to see anything if "no" was selected.

I may be reaching too far, but it's worth asking about I guess.
I've spent hours tweaking Robert Johnson's script trying to find a way to get it to work in my situation and I got nothing. I've also been all over StackExchange trying to find a way and I'm still nowhere. I'm just too new at this and need an example close enough to what I'm trying to do so that I can take it and run with it.
Eric, your example with Robert Johnson was really close to what I need, but the difference is he is trying to show something from an "input" element and I am really just trying to get text to show up in the email IF my form result [radio42] is "yes".

Arggg. :)

Any thoughts?
Knowing is half the battle
User 2659348 Photo


Registered User
119 posts

And yes.... the email does show me the result from [radio42] - yes or no.
But again, I'm trying to get a SECOND thing to happen in the email based on the result of that [radio42] button. A "confirmation" if you will. Why would I want that - why would I want to complicate things? There IS a very important business reason that I need this secondary "confirmation" of their selection in the email.

Any ideas would be appreciated.
Thanks!
Knowing is half the battle
User 187934 Photo


Senior Advisor
20,271 posts

I guess I don't understand then. Why does it matter if it's an input or just a plain text field when all you see is plain text in the email anyways? You can prefill a input with any value you want and make it read only or keep it hidden.
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 2659348 Photo


Registered User
119 posts

I just worked with that as best I could based on the information you gave me. I went back to Form Options and made a Hidden Field and gave it a value of "Same as Billing Address". That didn't produce anything in the email when I told the jQuery to show that field in the email (using the example Robert Johnson used).

On each Element Property, I can see where I can make things Read Only, but not where I can Hide them. I only see ways to "hide" in the Form Options. If I "prefill" an input element with text, that is just a place holder and it shows up on the form as an input box....and if I make it Read Only, it still shows up on the form as an input box - just a different background color becasue they can only read it.

To explain my form & email layouts:
On my form I have Section Titles: Billing Address & Shipping Address. At the bottom of the Billing Address section I have a radio button selection. The label for that button says Ship to Billing Address? and the choices are "yes" or "no".
If they click "yes", there is a Plain Text Field that shows up (using Display Rule) under the Shipping Address section that says "Same as Billing Address".
If the clicked "no", then that Plain Text Element is not shown and a whole new section of input fields shows up so they can input their Shipping Address Info.

I have set up the Email Notifications to look just like the form. I have html (<p></p>) Section Headers just like on the form: Billing Address and Shipping Address. Any input fields that are filled out in the form (or radio selections selected) show up in the email under the proper sections as I've told them to. I think it's important for efficiency & clarity to have the emails show up just like the form.

But if someone selects "yes" in the form from the radio "Ship to Billing Address?" then the email shows the selection of "yes". That's fine. But then under my email section header "Shipping Address" there is just nothing. That makes the email look stupid to have a Section Header that has nothing in it. Plus, I want to use that space to verify their selection of "yes" by having simple text show up under the Shipping Address section of the email that says the same thing it says on the form (Same as Billing Address).

So, you see that I can't just type that (Same as Billing Address) in the email or it would be there all the time - even if they input separate shipping info. And I really think using jQuery in the email would show this text, only if the radio button selection was "yes", but ..........

the jQuery can't get the exact thing from the form because it is an element with no "name". That's fine, maybe I can get the jQuery to show me text that I input into it or in the email in a paragraph. I have looked on Stack Overflow trying to find different ways to do that and nothing is working. It seems I should be able to have jQuery show me some text that is not from an element on the form - but from something I simply write somewhere in the email itself... something that only shows up based on the function of the jQuery.

If I can add a "name" and text value to my Plain Text Element (Same as Billing Address) so that I can just have the email show it if it also is shown on the form (based on the Display Rule), then I need an example of what I would type in the code for that Plain Text div in the form html. As long as it doesn't make the form look different. I don't really want the form to show an input box for something that only needs to be plain text.

Or...

If I can make jQuery do this for me in the email by saying "if radio button 'yes' is selected then show me this (Same as Billing Address) text. Or if it will get the value from the Hidden Field I create in the Form Options and show it in that section of my email. That would be great.
And on that Hidden Field in the Form Options, I gave it a name (saba) and a value of Same as Billing Address assuming that was what I was supposed to do. But I don't know how to write the jQuery in the email config to do what I want with that info.

So, I'm seeing several ways that this could possibly work, I just don't know exactly how to do any of them. Men on the moon, facial recognition software, virtual reality.... and I just want a simple sentence to sometimes show up in an email. :)
Knowing is half the battle
User 2659348 Photo


Registered User
119 posts

Now that I re-look at your exchange with Robert Johnson, was he trying to get an email input field to show up on his FORM based on what someone checked? Because if so, I don't see how he had trouble with that & needed a jQuery solution.

Or was he trying to get his notification EMAILS to show something? And if so, then why would they verify their email address IN an email they just successfully received from him? Is the jQuery you helped him with typed in the code of the Email Notifications or in the html of his form? Can I even put jQuery into the EMAIL config at all?? Because if not then I have really wasted a lot of time. :D ...and no wonder nothing has worked.

I catch on quick - I just need a little more info than most people to get me going.
Knowing is half the battle
User 187934 Photo


Senior Advisor
20,271 posts

I would place the needed elements in the page but don't tie any form builder conditions to them. Use JQuery to populate the inputs from the already filled in ones and keep them hidden. This way they will show up in the email and the confirmation if you want them there.
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 2659348 Photo


Registered User
119 posts

"I would place the needed elements in the page (which page? in the Form?) but don't tie any form builder conditions to them. Use JQuery (where? IN the email config?) to populate the inputs from the already filled in ones and keep them hidden (keep them hidden? with jQuery? the only way I know to "hide" an element is in Form Options and if it's hidden on the form then they can't fill it out or select it) . This way they will show up in the email and the confirmation if you want them there."

I guess I've made everyone here mad. Because Robert got a nice example typed for him that he could see and therefore work with.

And if you mean create redundant fields and hide them by creating them in Form Options - Hidden Fields, and then refer to them in the email config with jQuery (just for the purposes of getting the email to perform how I want) then what would that script look like? I've tried this by using exactly what Robert came up with for his issue, and many variations thereof, and it does nothing. The "value" of a Hidden Field is the "text" I want, right?

In the email, I do get the little black arrow that tells me something is there, and if I click it I see a div highlighted that has nothing in it. So that makes me think the script is doing something - it's just not showing me the text I want it to show.
Knowing is half the battle

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.