Subject Re: validRequired
From Milind Nighojkar <milinigh@yahoo.com>
Date Wed, 12 Jan 2022 03:37:39 -0500
Newsgroups dbase.getting-started

Hello Akshat,
Thanks for the input.

Just to mention I am trying this validation in Grid for a date field. I could see any such property. Have I missed some thing?

Milind Nighojkar


Akshat Kapoor Wrote:

> Good Evening Milind,
>
> > Scenerio : Want a forced validation ongotfoucs
> >
> > How validRequired is used?
>
> By now you must have learnt how to code valid() event. I am not going
> into the details.
>
> But there is a catch. valid is not executed() if there is no change in
> value of entryfield
>
> Setting the value of validrequired to true will force execution of
> valid() event.
>
> Select the entryfield on the form.
> Scroll to the bottom of the inspector and you will see the validrequired
> property.
>
> Set it to true.
>
> Now go to the events tab of the entryfield and click on the spanner at
> the side of the valid event.
>
> You will be taken to the code editor.
>
> Change the event as required and then check.
>
> Hope this helps
>
> Regards
> Akshat