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
oh.. although the reply might come too late, but you can use this to update a locked field
Xrm.Page.getAttribute("xxx").setSubmitMode("always");
I got the answer a javascript at form load was locking the field. I removed it then its working fine.
Thank you all
Quick way of doing it is via the PRE operation plugins, PRE-create, PRE-update etc.
var target = context.TargetImage;
target[FIELDNAME] = VALUE;
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?
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
Hello,
Can you please provide code of your plugin and screenshot how you registered your plugin?
Could you show us some of your code?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156