jmathew
24th November 2011, 03:36
Hi,
I have a requirement to have a check of input of date in a form field so that the user will input a date which is the current date only. Since this is a standard session I would like to know if the field "Input/Ref. Expression" in form editor, has any option by which this can be checked and restricted. Or also let me know if there is any other alternative to acheive this without having the source code for this session.

Regards,
John.

JaapJD
24th November 2011, 09:16
You can try to set the Input/Ref. Expression to 0 and fill the default value with date(). But it could depend on the type of session whether it will work.

Hitesh Shah
6th December 2011, 17:46
As explained by Jaap , u can set input / ref to "field.code :=date(),0" and u will have this field always filled with current date . U may need to c if it helps u in all circumstances .

Alternatively u can autozoom on the field to a customized session , export / import value of whatever variables u need and end the customized program in before.program section only so that nobody ever will notice that a new program was called .