hidden fields (html meaning) on crm forms? RRS feed

  • Question

  • 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?
    Friday, August 9, 2013 8:22 PM

All replies

  • 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.

    I've answered this also on - https://community.dynamics.com/crm/f/117/t/110609.aspx#.UgVytd5wbIU


    Scott Durow
    Blog www.develop1.net    Follow Me
    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Friday, August 9, 2013 10:53 PM