Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

change form properties

(1) ShareShare
ReportReport
Posted on by 350

pastedimage1659021989977v2.png 

It is possible to make this field mandatory when type = CXC, but for the other cases it is optional?

  • Luis Pascual Profile Picture
    350 on at
    RE: change form properties

    thanks

  • ergun sahin Profile Picture
    8,816 Moderator on at
    RE: change form properties

    Or Like this

    pastedimage1659036493198v1.png

    In this solution mandatory property work for only this control. If form has second PaymMode field at other tabs/groups, they will not change

  • Verified answer
    ergun sahin Profile Picture
    8,816 Moderator on at
    RE: change form properties

    Look for DS Methods 

    pastedimage1659036125336v3.png

    If it's not there You need overwrite method

    pastedimage1659035942248v1.png

    You can write something like this

    pastedimage1659036041871v2.png

  • Luis Pascual Profile Picture
    350 on at
    RE: change form properties

    I already activated the autodeclaration property on the control, but where is it in the active method of the Header dataSource?

  • ergun sahin Profile Picture
    8,816 Moderator on at
    RE: change form properties

    Set control's AutoDecletarion propery to YES (Or you can use the DS field directly)

    at Header dataSource's active method set field's(or control's) Mandatory property to Yes/No (When you change header row, active will called and your code will look for data (type = CXC or not) and will set value)

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,140 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,895 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans