1 Reply Latest reply on Jul 15, 2009 1:32 PM by etripoli

    Message Box

    anicolais

      Title

      Message Box

      Post

      I have an account layout with a button on it that goes to the related people. Everytime a new person is added for that account a new ID# is associated with the new record. Is there a way to make it so if there is no related poeple to the account yet that a message box shows that says "No Related Contacts" then gives the user the ability to add a new contact or go back? Otherwise how else could I apporoach this? I want only one button to do this on my Account layout though.

       

      Thanks!

        • 1. Re: Message Box
          etripoli
            

          Yes, in the script that you use to go to the related people ( I assume script since you already have the button ), turn on Error Capture, and after performing the find, check to see if there are any related people by using 'Get ( FoundCount ) = 0' in an If statement.  Within that IF statement, show the Custom Dialog, giving the user the option to add a new contact, or go back.  Use 'Get ( LastMessageChoice ) =' to figure out which button they clicked on the dialog box.