Good Morning,
form1.subform.Button3::click - (JavaScript, client)
var oDoc = event.target;Solved! Go to Solution.
to verify if a field is filled in you may use the if statement to check if the rawValue is null
if null is not working it might be because it's a checkbox or radiobutton or dropdownlist, etc... cehck if value is 0
Now when you are about to send the email verify is the fields were filled in successfuly
to verify if a field is filled in you may use the if statement to check if the rawValue is null
if null is not working it might be because it's a checkbox or radiobutton or dropdownlist, etc... cehck if value is 0
Now when you are about to send the email verify is the fields were filled in successfuly
Thank you it worked! Code used for reference:
var boValidation = true;
if (form1.subform.name.rawValue == null || form1.subform.userid.rawValue == null || form1.subform.compname.rawValue == null)
//Change validation to null
boValidation = false;
app.alert("Please fill in the required fields.");
}
if (boValidation)
{
var oDoc = event.target;
oDoc.mailDoc({
bUI: true,
cTo: "t...@domain.com",
cCc: "c...@domain.com",
cSubject: "title",
});
}
Views
Replies
Total Likes