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 :
Power Platform Community / Forums / Power Pages / Data is not getting sa...
Power Pages
Unanswered

Data is not getting saved in CRM side via portal

(0) ShareShare
ReportReport
Posted on by 48

I have one field in CRM which is in ReadOnly Mode. This field is exposed on Portal. In Portal, I am trying to set value in this field using JS. but Data is not getting saved after submit the form.

Categories:
I have the same question (0)
  • oliver.rodrigues Profile Picture
    9,471 Most Valuable Professional on at

    Hi @CRM_HUB , a few things to check:

    • is there any plug-in / workflow that could be overwriting the value of the field?
    • does it work, if you remove the "ReadOnly" option? if yes, I would set the read-only via JS then instead of marking it in the CDS Form.. perhaps the fact it is set in the CDS Form is making the Portals not send that field on the POST request
  • Fubar Profile Picture
    8,487 Super User 2026 Season 1 on at

    If the field is set to readonly in the form defined in CRM (except if just by a business rule or JavaScript in CRM), then you cannot make it editable on the Portal - this is by design.  If you need the field editable in the portal create a separate form for Portal use, or set the field editable and disable it in CRM with a business rule or JavaScript.

  • Summer Garg Profile Picture
    48 on at

    Hi OliverRodrigues,

     

    There is no plugin/WF execute. And yes, we if remove ReadOnly from CRM form then value is getting saved. 

     

    There is a way to do this as you said, we can make this field readOnly using JS but I do not want to do this via JS.

     

    I just wanted to check, is there any way to do this if field is readOnly from CRM side and setting the value in that field using JS from Portal side, then how can we do this ?

     

    Just trying to write very less code.

     

    Thanks,

     

  • oliver.rodrigues Profile Picture
    9,471 Most Valuable Professional on at

    you can use Entity Form Metadata to set a value for a field on save.

    but this will be a static value, not sure you are performing some dynamic logic in your JS

  • Fubar Profile Picture
    8,487 Super User 2026 Season 1 on at

    Normally, you define a separate form for the Portal users, this allows you to have different fields displayed or readonly/editable.

     

    By design, the CRM is only expecting editable form fields data to be saved back to it (good web programming), which is why you cannot use a CRM read-only and try to convert it to editable in the client front end (this is what a bad person looking for security holes would do, try and insert data that they are not meant to).

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
rezarizvii Profile Picture

rezarizvii 61

#2
Valantis Profile Picture

Valantis 46

#2
11manish Profile Picture

11manish 46

Last 30 days Overall leaderboard