web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

Portal "Read only" fields not working as expected

(0) ShareShare
ReportReport
Posted on by 30

Hi,

In dynamics portal basic form "Additional Settings" tab "Custom JavaScript" I write the code.
If I make the field Read only, value is not save to CRM. I tried both "readonly" and "disabled"

  • $('#fieldschema').attr("readonly", true);
  • $('#fieldschema').attr("disabled", "disabled");

if I use the 1st one I can edit the value, If I use the 2nd one value not saved in crm. Is there any other ways to make the field readonly in portal (If I assign any value to the Read only field using code the value should be saved to the CRM)


Expected outcome
 1  Field should be read only using JS
 2  I will populate the value to the read only field
 3  The value I provided to the read only field should save to the CRM.

Thanks in advance.


  • Suggested answer
    CRMJetty Profile Picture
    3,514 on at

    Hello Esakki,

    Pls refer this thread,

     https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/359754/portals-entity-form-only-displaying-in-read-only 


    I hope it helps,

    Thanks.

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365.

  • Esakki Profile Picture
    30 on at

    Sorry I my question was wrong I think, Please go through this question

    community.dynamics.com/.../portal-while-sumbitting-form-readonly-field-unable-to-save-on-the-crm

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
11manish Profile Picture

11manish 48 Super User 2026 Season 2

#2
Travis South Profile Picture

Travis South 45

#3
Ayesha Wajahat Profile Picture

Ayesha Wajahat 18

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans