How do you make NOTE field not blank

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
Yass
Posts: 103
Joined: November 11th, 2017, 1:26 am

How do you make NOTE field not blank

Post by Yass »

Hi,

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


Thanks
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: How do you make NOTE field not blank

Post 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;
Yass
Posts: 103
Joined: November 11th, 2017, 1:26 am

Re: How do you make NOTE field not blank

Post by Yass »

Thanks Geg
Post Reply