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, 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.
These are Bound Controls,
i already specificated mandatory as yes in its data source and also in form
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.
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.
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.
Hi, Is your issue resolved or do you need any assistance?
If resolved, please mark answer/s Verified.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 683 Most Valuable Professional
André Arnaud de Cal... 563 Super User 2025 Season 2
Sohaib Cheema 398 User Group Leader