locked
Hide required fields from a copied form RRS feed

  • Question

  • Hi,
    I'm trying to copy the general Opportunities Main form. When you copy the Information Main form within Opportunities then you will have an exact copy of the form with all the original fields.
    This causes me some issues because I'm not capable of deleting some required fields from this second form (Owner, Topic, Potential Customer, currency and Revenue)
    In order to solve the issue I grouped all the required fields together in a section and within "CHANGE PROPERTIES" I deactivated the checkbox "Visible by default" for all the different fields.
    I did the same for the section properties.
    Now, when I go back to behold my page as a normal user then a popup appears with the following information:
    "There was an error with this field's customized event.
    Field: window
    Event:onload
    Error: Unable to set value of the property 'Disabled': object is null or undefined."
    Next, the field TOPIC is still visible. The other fields (Owner, Potential Customer, currency and Revenue) are not.
    I checked the properties for the field TOPIC, but this is no script behind this field.
    I have 2 questions:
    1. What's the error message and how can I solve it? I prefer not to see the field TOPIC within my second Opportunity main page.
    2. How should I deal with system required field like that on second pages? Should I continue to work as I do now or is it possible to really get rid of those fields in my second form?
    Regards,
    Sven

    Sven8E
    Tuesday, September 27, 2011 4:46 AM

Answers

  • In order to hide required fields you must first edit the field to make it NOT required. Then you can create a new section "Hidden section", and move all those fields to that section. Then you can hide the entire section.

    The script error you are getting is probably not related to that. When you get the script error there should be a button to view the data that will be sent to Microsoft. You can see there which exact script is failing and at which line. You can then figure out which of your scripts is causing a problem, or you can post that information in the forum.


    Gonzalo | gonzaloruizcrm.blogspot.com

    • Proposed as answer by Gonzalo Ruiz RModerator Tuesday, September 27, 2011 12:07 PM
    • Marked as answer by Sven8E Monday, October 24, 2011 11:46 AM
    Tuesday, September 27, 2011 12:07 PM
    Moderator

All replies

  • Some of those fields are system fields and you can't get rid of them.

    Come back to the error. check if you are assigning any value to any of those hidden fields on form load.

    I hope this helps.


    Amreek singh Senior CRM Consultant CDC Praxa Sydney,Australia http://mscrmshop.blogspot.com/
    • Edited by Amreek Singh Tuesday, September 27, 2011 5:46 AM
    • Proposed as answer by Amreek Singh Tuesday, September 27, 2011 5:46 AM
    Tuesday, September 27, 2011 5:45 AM
  • In order to hide required fields you must first edit the field to make it NOT required. Then you can create a new section "Hidden section", and move all those fields to that section. Then you can hide the entire section.

    The script error you are getting is probably not related to that. When you get the script error there should be a button to view the data that will be sent to Microsoft. You can see there which exact script is failing and at which line. You can then figure out which of your scripts is causing a problem, or you can post that information in the forum.


    Gonzalo | gonzaloruizcrm.blogspot.com

    • Proposed as answer by Gonzalo Ruiz RModerator Tuesday, September 27, 2011 12:07 PM
    • Marked as answer by Sven8E Monday, October 24, 2011 11:46 AM
    Tuesday, September 27, 2011 12:07 PM
    Moderator
  • Hi,

    Response to your remarks:
    1. All the fields do contain a value.
    2. No extra Microsoft screen is appearing (just the popup I told you about) and the proper settings are configured within File / Options / Privacy . Is there a specific log that I can check for more detail about the error?
    3. If I make the field NOT required then it will be for all the forms for this specific entity and that's not my purpose. When you create a new form then apparently it's not possible to start with an empty form. It will already be populated with different (system) fields.

    It's just this field that's visible, I was able to hide all the other system fields. I found that this specific field is locked to the form. (check within change Properties).

    Regards,


    Sven8E
    Wednesday, September 28, 2011 6:54 AM
  • You cannot remove system fields from any form. Can you provide more details on the popup following the instructions I mentioned?

    Gonzalo | gonzaloruizcrm.blogspot.com

    Wednesday, September 28, 2011 12:08 PM
    Moderator
  • I encountered the same error with my custom opportunity form. the error message is misleading as it seems to point to a custom event tied to 'onLoad'. there's also no further diagnostic info with the error, either from a Microsoft error report sending request or in any event logs.

    in my case the solution was to re-add a couple of system fields which i had previously removed from the form. once all system fields were added back onto the form, the error stopped appearing.

    hope this helps.


    Have you tried turning it off and back on again?


    Friday, March 23, 2012 11:29 AM