JimbobGilb
Posts: 28
|
Posted: 11/07/2011, 6:58 AM |
|
Hello,
I have a Record Form with textbox1 and textbox2 in. I want to alert the user via a popup message / confirmation message that these values do not match. Then give them the choice to continue or cancel. Any ideas of the best way to do this. Have looked at the Confirmation Message but cannot find an example to show the message only if criteria do not match.
|
|
|
TheunisP
Posts: 342
|
Posted: 11/07/2011, 7:10 AM |
|
create an client level event for the record and add the code below given you change the names so it matches your text box and records names:
if(document.forms["RecordName"].TextBox1.value != document.forms["RecordName"].TextBox2.value) {
return confirm('Text box 1 and 2 do no match - do you want to continue?');
}
|
|
|
JimbobGilb
Posts: 28
|
Posted: 11/09/2011, 11:48 PM |
|
That worked great!! Many Thanks for your help.
|
|
|
TheunisP
Posts: 342
|
Posted: 11/10/2011, 12:09 AM |
|
no problem
|
|
|