Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

change form properties

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
    Luis Pascual 350 on at
    RE: change form properties

    thanks

  • ergun sahin Profile Picture
    ergun sahin 8,812 Super User 2024 Season 1 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
    ergun sahin 8,812 Super User 2024 Season 1 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
    Luis Pascual 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
    ergun sahin 8,812 Super User 2024 Season 1 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans