Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Custom Control : check field required

(0) ShareShare
ReportReport
Posted on by 2

Hi,

We want to make a custom control for a single line of text field.

The text colour should change if the field is required.

No experience in development of customer controls is available at the project.

When I did some research on the internet, I found an example that got info by using Xrm.Page. ...

However this component will be developped for an online V9.1

We don't use Xrm.Page but formContext.

Are there "safer" ways to know if the field is required than using Xrm.Page? Is the attribute passed within parameters or so?

If someone can point me to some information about creating a custom control, I would be glad (I could only find 1 source).

*This post is locked for comments

  • Birgit RD Profile Picture
    Birgit RD 2 on at
    RE: Custom Control : check field required

    As I could not find a clear explanation, I made a custom control on a trial environment to debug.

    the Attribute is called requiredLevel.

  • Abhishek Gupta Profile Picture
    Abhishek Gupta 2,001 on at
    RE: Custom Control : check field required

    Hi,

    You can create a custom control in html. Only problem is whenever you wish to save the control value in MS crm database. You need to call API service update method in background. For all the validation over a custom control, you can implement that using jquery.

    Thank you

    Abhishek

    If found useful, please mark the answer as verified

  • Verified answer
    Kokulan Profile Picture
    Kokulan 18,050 on at
    RE: Custom Control : check field required

    Hi

    Check all the properties of the context being passed, mentioned in the link below

    bguidinger.com/.../custom-controls-framework-part-1

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans