| Subject |
Re: Reqired fill |
| From |
Akshat Kapoor <akshat.kapoor@kapoorsons.in> |
| Date |
Wed, 2 Jun 2021 12:20:16 +0530 |
| Newsgroups |
dbase.getting-started |
Good Afternoon Charlie,
> OK.. Yes the trim did it. I should have known better.
>
> I ended up doing this...
>
> function ENTRYFIELD4_onChange()
> if len(trim(form.entryfield4.value)) < 5
> msgbox( " Invalid Input!" )
> form.entryfield4.value = ""
> form.auctopen1.rowset.fields["locate_a"].value = ""
> endif
> return
>
> The valid is cool but it seemed to freeze the form until the problem was resolved which was frustrating. is there a way around that?
Another event to try is onLostFocus.
There you can check if the current control is close pushbutton then
allow loosing focus otherwise check for validity and then if required
set the focus back to entryfield.
I think I have used this somewhere but where I do not remeber and hence
unable to post sample code.
Regards
Akshat
|
|