2 Replies Latest reply on May 7, 2013 5:19 AM by justjoker

    Stuck on script

    justjoker

      Title

      Stuck on script

      Post

           Hello,

           I've got a script to go to the previous (next) record.

           The field's got the validation option "required".

           I'd like to get the following:

           When a user accidentally create a blanc new  record and then try to go to the previous record, a dialog shows up saying something like that -  "This field should not be empty. Fill or delete the whole record" .

           There should be 2 options:

           1) Go back to the record to fill;

           2) Delete the whole record.

           I know it's simple, but stucked.

           Any help?

           Thanks,

           Serge

        • 1. Re: Stuck on script
          RiteshGupta

               Hi Sergey

               When user click previous buttom that time write script for checking this record is empty.if this record is empty then show dialog message with two button ,one for fill the record and second for delete record.
               if[record=""]
               show custom dialog(1 for fill data,2 for delete data)
               if[getLastmessage=1]
               halt script
               else
               delete record
               end if
               end if

               Thanks
               Ritesh Gupta
               Mindfire Solutions

          • 2. Re: Stuck on script
            justjoker

                 Thank you, Ritesh