How do you use the "exit sub" in SalesLogix to prevent a form from closing???

Question:

I was trying to use “exit sub” on AXFormClose to prevent closing the form but I cannot get it to work correctly.

if flag<>“Y” then
msgbox (“Please select Campaign Response “), 64,” SelectCampaignResponse”

exit sub

end if

Answer:

Function AXFormCloseQuery(Sender)

if (Sender.ModalResult =2 and flag<>“Y”) then
AXFormCloseQuery = false
else
AXFormCloseQuery = true
end if

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter

Join our mailing list to receive the latest Infor CRM (Saleslogix) and Creatio (bpm'online) news and product updates!

You have Successfully Subscribed!