web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Login form issues

(0) ShareShare
ReportReport
Posted on by 70

pastedimage1684138325890v1.png

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

  • Mohit Rampal Profile Picture
    12,573 Moderator on at

    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.

  • gaya3 killy Profile Picture
    70 on at

    These are Bound Controls,

  • gaya3 killy Profile Picture
    70 on at

    i already specificated mandatory as yes in its data source and also in form

  • Suggested answer
    Mohit Rampal Profile Picture
    12,573 Moderator on at

    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.

  • Suggested answer
    GirishS Profile Picture
    27,843 Moderator on at

    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.

  • GirishS Profile Picture
    27,843 Moderator on at

    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.

  • Mohit Rampal Profile Picture
    12,573 Moderator on at

    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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 495 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 432 Super User 2026 Season 2

#3
CU10121822-0 Profile Picture

CU10121822-0 366

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans