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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Portal while sumbitting form, readOnly field unable to save on the CRM

(0) ShareShare
ReportReport
Posted on by 30


In dynamics portal page while submitting the form Read only fields value are not save on the CRM.

I tried the following options in basic form custom java script  its not working. Disabled field values are not saved to the CRM

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


Thanks

I have the same question (0)
  • Esakki Profile Picture
    30 on at

    I change the Lookup field as dropdown  using portal "Basic Form Metadata". I need to make that field as read only and save that field value to CRM

    Thanks

  • Esakki Profile Picture
    30 on at

    I change the Lookup field as dropdown using portal "Basic Form Metadata". I need to make that field as read only and save that field value to CRM.

    Thanks

  • Suggested answer
    CRMJetty Profile Picture
    3,514 on at

    Hello Esakki,

    Pls refer this thread,

    https://powerusers.microsoft.com/t5/Power-Apps-Portals/Data-is-not-getting-saved-in-CRM-side-via-portal/td-p/753240

    community.dynamics.com/.../923881

    https://powerusers.microsoft.com/t5/Power-Apps-Portals/Setting-Entity-Field-Read-Only-on-Portal-page-form/td-p/537786

    I hope it helps,

    Thanks.

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

  • Suggested answer
    Yuri ji Profile Picture
    Microsoft Employee on at

    Hi Esakki,

    Please check that you have selected Read-Only for the properties of the columns in the table.

    Go to Portal Editor >> Web Page >> Form >> Edit form

    pastedimage1661499295927v11.png

    pastedimage1661497631663v1.png

    My test case is that the field values can be saved without the read-only option checked:

    1. Add custom javascript to this web page.

    pastedimage1661497894985v5.png

    2. Submit the form on the web page.

    pastedimage1661497915462v7.png

    3. View the result.

    pastedimage1661497934371v9.png

  • Esakki Profile Picture
    30 on at

    Its working only single line text, I want to make read only for dropdown and lookup field

  • Suggested answer
    Yuri ji Profile Picture
    Microsoft Employee on at

    Hi Esakki,

    After my testing, in Protal, the dropdown and lookup fields are read-only by default and can only be selected by the right button.

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

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 25 Most Valuable Professional

#3
11manish Profile Picture

11manish 17 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans