Avatar

Level 2

Hi Scott,

Thank you very much for your reply and I apologize for getting back to this so late. I started using your suggestions today and I did have some success! The "shadow" button is very clever. Now, I think my lack of javascript syntax knowledge is keeping me from getting it all correct. I experimented with one field, a date field and I created the shadow button as you suggested and it worked perfectly!. The successful code I used for the click event for the gray button (see image below), was:

form1.SSA.SF_Approver2RIF.SubmitRIFToFinalHrShadowButton::click - (JavaScript, client)

if (form1.SSA.SF_Approver2RIF.Approver2RIFDate.rawValue == null) {
xfa.host.messageBox("Please fill in all required fields");
}
else form1.SSA.SF_Approver2RIF.SubmitRIFToFinalHrButton.execEvent("click");

screenshot1.png

However, I have not yet had luck getting the other fields in that row to work like the date field has though. I don't think I'm coding the "or' part correctly when I begin to add the fields (the next one I'm trying to add after the "or" is the "Name" dropdown list box, but maybet the dropdown list doesn't count as a "null" value like the Date field does?

My attempt at adding the name field so that two items are being checked is something like this but it does not work:

form1.SSA.SF_Approver2RIF.SubmitRIFToFinalHrShadowButton::click - (JavaScript, client)

if (form1.SSA.SF_Approver2RIF.Approver2RIFDate.rawValue == null){

or

(form1.SSA.SF_Approver2RIF.Approver2RIFName.rawValue == null)

xfa.host.messageBox("Please fill in all required fields");
}
else form1.SSA.SF_Approver2RIF.SubmitRIFToFinalHrButton.execEvent("click");

Thank you so much for any additional insights you or the other members may have. I really appreciate it!

-Chris