Pre-Fill Text Field (Web Form Builder...

User 187934 Photo


Senior Advisor
20,271 posts
Online Now

If you can provide link to the form I can make sure things are setup correctly for ya.:)
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 358332 Photo


Registered User
5 posts

Of course! Here's the link: http://www.angeti.com/hire/OOPform/test1/index.html

The scripts are between lines 1033 and 1051.

So, the script that is dealing with the two fields (item26_text_1, item81_text_1) is the one that's giving me issues. Maybe it's something that I cannot see, since I've been at this entire site for about 5 straight, and I just need a break...

PS: Field 'item71_regex_1' is hidden until the user selects 'YES' at the bottom of "Page 2"
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

Give this a try.
<script>
window.onload = function () {
var first = document.getElementById('item26_text_1'),
second = document.getElementById('item81_text_1');

first.onkeyup = function () { // or first.onchange
second.value = first.value;
};
};</script>

<script>
window.onload = function () {
var regfirst = document.getElementById('item71_regex_1'),
regsecond = document.getElementById('item72_regex_1'),
regthird = document.getElementById('item85_regex_1');

regfirst.onkeyup = function () { // or first.onchange
regsecond.value = regfirst.value ;
regthird.value = regfirst.value ;

};
};</script>
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.