![]() |
Pete K 7/22/2022 |
It looks like you're mixing JavaScript with server-side code (C#). Is this code in a client-side or server-side event? For validation, you want to use Javascript and put it in the OnLoad event. See the documentation under JavaScript API > Control Object. |
T
|
Tuong Do 8/11/2022 |
If you want to validate at the server level then In the Before record updated event (Assuming VISIT_DATE is the field name) if ( DateTime.Parse(values["VISIT_DATE"]) > DateTime.Today) { |
R
|
Rajesh author 8/12/2022 |
Here is what I am using currently and its working (partially)
var ctrl = Runner.getControl(pageid, 'DateTimeInputStarted');
// Prevents a future date entry in DateTimeInputStarted - server validation TIA |