I'd like to set a value of a field in a document if the user selects yes from a prompt.
Here is the code I have in an action button:
answer := @Prompt([YesNo]; "Submit?"; "Are you sure you want to submit this contract for PM Approval?");
answer = 1;
FIELD := "Pending PM Approval";
@PostedCommand( [FileSave] );
@PostedCommand( [FileCloseWindow] );
However, I'm getting a "missing semicolon" error and the word FIELD is red. What am I not understanding?