Change Text in Plain Text field based...

User 2620003 Photo


Registered User
4 posts

I have a form i'm working on and would like to know if there is a way to have different text show up in the plain text field based on the option selected by the user.

Thanks in advance for you help.
User 187934 Photo


Senior Advisor
20,271 posts

Yes you can. Here's an example.
http://ericrohloff.com/coffeecup/ccforu … on_select/
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 2620003 Photo


Registered User
4 posts

Very close to what i want, but for a select drop down box. do you have an example for drop downs?

sorry, but very new to web programming.

Thanks.
User 187934 Photo


Senior Advisor
20,271 posts

Populate an input based on a drop down, or populate a drop down list based on an input?
Here's an input populated from a drop down.
http://ericrohloff.com/coffeecup/ccforu … _dropdown/
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 2620003 Photo


Registered User
4 posts

So, thanks to your example, i figured out how to get this working. Now, however, it breaks everything else in the form.

is there a way around this, or is it either form code, or my custom code?

Thanks.
User 2147626 Photo


Ambassador
2,958 posts

What do you mean by 'breaks everything else in the form' ?

Do you have a link to the form we can look at?
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
User 187934 Photo


Senior Advisor
20,271 posts

Were going to need to see the issue as Gunsmoke has pointed out.:)
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 2620003 Photo


Registered User
4 posts

so, here is what i mean.

i have 1 drop down and a plain text field that i want updated by the dropdown. based on Eric's example, i was able to get that working. I added 2 more drop downs, 1 being dependent to be shown by the other based on a the selection. when i put the code in for the first drop down and plain text field, it breaks the 2nd drop down.

i will try to post it up somewhere.
User 2147626 Photo


Ambassador
2,958 posts

One thing to check for is under 'Properties' for each of your drop downs, check the 'Name' box and insure that no two have the same name. They all need to be different.
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
User 187934 Photo


Senior Advisor
20,271 posts

Your probably looking at either a JQuery conflict or the script isn't ready when you show and unhide the other elements with the conditionals. Form builder won't let you name elements with the same variable name.:)
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

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.