Avatar

Level 2

Hi. I am glad it is working for you. the code can be unnecessarily complicated sometimes. I am still just learning so it is frustrating. I used this code for mine. I will insert your field names so you can(hopefully) just copy and paste it in. The language will need to be set to FormCalc.

if

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

then

xfa.host.messageBox("Please fill in all required fields.")

else

SubmitRIFToFinalHrButton.execEvent("mouseUp")

endif

I know it seems weird but it seems that you will need to move whatever the real button is supposed to be doing to the MouseUp event instead of the click event. I am uncertain why this is but I run into a lot of issues when it is on the click event.

I hope this helps.