
Hello - What is CRM's approach to using hidden fields on forms?
For example, I haven't really played around with the concept, but another developer was mentioning that you need to have a field on the form in order for that entity field value to pass through to the plugin.
However, if you simply hide the field on the form, then it won't get passed through to the plugin. Is this true? Is there a workaround? I would think that there would be some type of built-in way to implement this since I'm essentially describing functionality similar to hidden fields on standard html pages?
*This post is locked for comments
I have the same question (0)Hi,
You really only need to have hidden fields on the form if you want to dynamically show them at some point, or if you have some JavaScript that needs the value.
If you want to pass values to a plugin that are not being updated on the form, you simply need to define a pre or post image and register it against the plugin step. msdn.microsoft.com/.../gg309673.aspx
Does answer your question? CRM Forms are unlike normal HTML forms in that you shouldn't interact with the HTML input fields themselves, but rather use the SDK Xrm api.
hth