Notifications
Announcements
No record found.
Hi
I am trying to update a field which is added in form .
It is showing locked symbol.
I am trying to update this field by plugin but it is not working.
Please suggest.
*This post is locked for comments
Could you show us some of your code?
Hello,
Can you please provide code of your plugin and screenshot how you registered your plugin?
What happens when you try an update the field in the plugin code ? Do you get an error ?
Is this a custom field, or a system field ? Some system fields cannot be updated - these have ValidForUpdate = false in the metadata
If the plugin step is registred in post operation, make sure you are updating the entity.
If it is not the case, any exception was thrown? Can you share the source code?
Quick way of doing it is via the PRE operation plugins, PRE-create, PRE-update etc.
var target = context.TargetImage;
target[FIELDNAME] = VALUE;
I got the answer a javascript at form load was locking the field. I removed it then its working fine.
Thank you all
oh.. although the reply might come too late, but you can use this to update a locked field
Xrm.Page.getAttribute("xxx").setSubmitMode("always");
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2