Prompt a YES / NO Question

Create Yes / No Button

Who can create these buttons?

We recommend that you have a basic level of understanding in Screen Builder before you attempt this or any other script. If you don't wish to create your own, we would love to do it for you! Contact Darla@DestinationsConsulting.com

What will this button do?

 

Script:

var
  buttonSelected : Integer;
begin
IF (SF.GetFieldText('Exam','ZZTEARTYPE')<>'') then
  buttonSelected := messagedlg('Was Anesthetic Used?',mtCustom,
                              [mbYes,mbNo], 0);

  // Show the button type selected
  if buttonSelected = mrYes    then SF.AssignFieldLogical('Exam','ZZSHIRANES',true);
  if buttonSelected = mrNo    then SF.AssignFieldLogical('Exam','ZZSHIRANES',false);
end;

Back to Free Stuff