Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Login form issues

(0) ShareShare
ReportReport
Posted on by 64

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
    Mohit Rampal 12,552 Super User 2024 Season 1 on at
    RE: Login form issues

    Hi, Is your issue resolved or do you need any assistance?

    If resolved, please mark answer/s Verified.

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: Login form issues

    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.

  • Suggested answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: Login form issues

    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.

  • Suggested answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,552 Super User 2024 Season 1 on at
    RE: Login form issues

    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.

  • gaya3 killy Profile Picture
    gaya3 killy 64 on at
    RE: Login form issues

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

  • gaya3 killy Profile Picture
    gaya3 killy 64 on at
    RE: Login form issues

    These are Bound Controls,

  • Mohit Rampal Profile Picture
    Mohit Rampal 12,552 Super User 2024 Season 1 on at
    RE: Login form issues

    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.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,817 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans