Skip to main content
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

  • Suggested answer
    Yuri ji Profile Picture
    on at
    RE: Portal while sumbitting form, readOnly field unable to save on the CRM

    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.

  • Esakki Profile Picture
    30 on at
    RE: Portal while sumbitting form, readOnly field unable to save on the CRM

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

  • Suggested answer
    Yuri ji Profile Picture
    on at
    RE: Portal while sumbitting form, readOnly field unable to save on the CRM

    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

  • Suggested answer
    CRMJetty Profile Picture
    3,512 on at
    RE: Portal while sumbitting form, readOnly field unable to save on the CRM

    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.

  • Esakki Profile Picture
    30 on at
    How to disabled drop down field in the portal using javascript code needs to save value in the CRM

    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
    How to disabled droo down field in the portal using javascript code needs to save value in the CRM

    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

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

News and Announcements

Now Available: 2025 Release Wave 2

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 51 Most Valuable Professional

#2
Ramesh Kumar Profile Picture

Ramesh Kumar 42

#3
David Shaw_UK Profile Picture

David Shaw_UK 27

Featured topics

Product updates

Dynamics 365 release plans