on 2020 Dec 04 8:29 PM
Hello,
I'm trying to add a validation on the "Take Readings" screen for a custom create notification button - when the user hits the create notification button, it should be created only if the input value for Note field (ShortTextNote) is entered for a particular reading or else should display an error message. Can you please let me know how to instantly know if there is a input value entered for the Note field for a particular reading? Attached a screenshot for reference.sam-take-readings.png
Tried the below statements, but I'm always getting empty value even a value is entered by user on Note field.
1. let notes = libCommon.getControlProxy(context.getPageProxy(), 'ShortTextNote');
2. let notes = libCommon.getFieldValue(context, 'ShortTextNote', '', null, true);
3. context.binding.ShortText;
None of the above statements worked. please suggest me the correct statement to use?
Thanks in advance!
You can check the Note field value via
let notes = context.getPageProxy().getControl('FormCellContainer0').getControl('FormCellNote0').getValue();
FormCellContainer0 : Form cell container name
FormCellNote0: FormCell Note control name
Or if you are using FormCell container on a section page,
let notes = context.getPageProxy().getControl('SectionedTable0').getControl('FormCellNote0').getValue();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
102 | |
8 | |
8 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.