I have the following form , after providing credentials it should open that particular regid details.
I set property to mandatory but still without providing credentials ,if i click login the other form is opening
Hi, Is your issue resolved or do you need any assistance?
If resolved, please mark answer/s Verified.
If the Registration Id and PIN control is DataSource bound control, just try calling DataSourceName_ds.validatewrite() on the clicked method of the Login button and check.
Thanks,
Girish S.
Hi,
Mandatory error will be thrown when you click on Save button on topmost left corner of the form. It won't be thrown when you click on Login button.
You need to add the validation manually.
Can you tell us whether the form you have is DataSource bound control or unbound control?
Thanks,
Girish S.
Mandatory will work while creating new records or updating existing records. It will not work on Login button. Even if you set Mandatory on table level, it won't work. Best to create validation code at form button level.
i already specificated mandatory as yes in its data source and also in form
These are Bound Controls,
Hi, Are these bound or unbound (without DataSource) fields. If unbound fields, then setting mandatory on form control will not work. You have to write validation code at Click method of Login button to check if values were entered in those two fields. Throw error, if one or both are empty.
André Arnaud de Cal...
291,965
Super User 2025 Season 1
Martin Dráb
230,817
Most Valuable Professional
nmaenpaa
101,156