Skip to main content

Notifications

Announcements

No record found.

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
    Yuri ji 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
    Esakki 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
    Yuri ji 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
    CRMJetty 3,508 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
    Esakki 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
    Esakki 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

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans