Page 1 of 1

How do you make NOTE field not blank

Posted: February 18th, 2019, 7:48 am
by Yass
Hi,

Please is it possible to ensure Note field Not blank after calling editnote() in an entry program.


Thanks

Re: How do you make NOTE field not blank

Posted: February 19th, 2019, 6:40 am
by Gregory Martin
The editnote returns the note entered, so you can check if that is blank. You can also use the getnote function. For example:
if strip(getnote()) = "" then
    errmsg("You must enter a note.");
    // do something
endif;

Re: How do you make NOTE field not blank

Posted: February 20th, 2019, 2:20 am
by Yass
Thanks Geg