I've tried searching through the discussions for an answer to this question, but I haven't found one, so I'm hoping it will be a quick, simple answer. And thanks in advance to anyone willing to help.
I'm creating a form which asks for the street address and the mailing address of the applicant. I've included a checkbox for the applicant to use if their mailing address is the same as their street address. I've added the following script to the mouseUp event of the checkbox:
if (getField("SameAsStreet").value=="Yes")
getField("MailingAddress").value = getField("StreetAddress").value
else getField("MailingAddress).value = "";
This script does not work when I enter data into the street address field then check the checkbox.
Any ideas?
Solved! Go to Solution.
Views
Replies
Total Likes
Try this one in Script Editor:
Set code in SameAsStreet(CheckBox)::change event
if (this.rawValue == "1") {
this.resolveNode("MailingAddress").rawValue = this.resolveNode("StreetAddress").rawValue;
}
else {
this.resolveNode("MailingAddress").rawValue = "";
}
Let me know your comments for the same.
Thanks,
Rahul Pathak
Views
Replies
Total Likes
I've also tried this script:
if (event.target.value != "1") {
this.getField("MailingAddress").value = this.getField("StreetAddress").value;
} else {
this.getField("MailingAddress").value = "" ;
This script does not work either.
Anybody?
Views
Replies
Total Likes
Try this one in Script Editor:
Set code in SameAsStreet(CheckBox)::change event
if (this.rawValue == "1") {
this.resolveNode("MailingAddress").rawValue = this.resolveNode("StreetAddress").rawValue;
}
else {
this.resolveNode("MailingAddress").rawValue = "";
}
Let me know your comments for the same.
Thanks,
Rahul Pathak
Views
Replies
Total Likes
Thank you, Rahul. That works perfectly. Very, very much appreciate your assistance.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies