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