web
You’re offline. This is a read only version of the page.
close
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 356

pastedimage1659021989977v2.png 

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

I have the same question (0)
  • ergun sahin Profile Picture
    8,826 Moderator on at

    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)

  • Luis Pascual Profile Picture
    356 on at

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

  • Verified answer
    ergun sahin Profile Picture
    8,826 Moderator on at

    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

  • ergun sahin Profile Picture
    8,826 Moderator on at

    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

  • Luis Pascual Profile Picture
    356 on at

    thanks

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 449 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 422 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans