In the form I am working on I have a current date field. When the user saves the form I would like that date to be locked so when the form gets emailed to me and I open it, I can see whent the user sent it.
Is this possible? Any help would be great.
Views
Replies
Total Likes
Hi,
write the below code on preSave event of date field:-
if(this.value!=null)
{
this.access="readOnly";
}
Thanks
Views
Replies
Total Likes
Still having a problem....not working. Next time I open the form (I've forced a date change on my pc) and it changes to the current date. Is this correct?
form1.#subform[0].CurrentDate::preSave - (JavaScript, both)
if(this.value!=null)
{
this.access="readOnly";
}
Views
Replies
Total Likes
Hi,
I am sorry i have provided solution according to date field, but you are using current date field.
So you can try below code:
There is a code written on the layout ready event.After change code at layount event will be like ::
if(form1.#subform[0].CurrentDate.value!=null)
{
$.rawValue = num2date(date(), DateFmt(1))
}
Thanks
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies