Answered by:
Hidden fields are visible for some seconds....

Question
-
Hello,
I have written the Javascript to hide some fields on Form Although those fields get hide but while Loading page or refreshing these fields are visble for some seconds.. Can any one Suggest why is this happpening.
Thanks in advance.
Regards,
Vandana Thakur.
- Changed type JLattimerMVP, Moderator Friday, May 10, 2013 11:28 AM
Friday, May 10, 2013 10:02 AM
Answers
-
By default the visibility property of field is visible. You can uncheck it. By doing this when form loads you wont get this field visible.
You can enable this field using javascript based on your requirement.
puja jain
- Proposed as answer by JLattimerMVP, Moderator Friday, May 10, 2013 11:28 AM
- Marked as answer by Payman BiukaghazadehEditor Sunday, May 12, 2013 3:12 AM
Friday, May 10, 2013 10:43 AM -
Hi,
This is a default behavior for the onload event functions, and it took one or two seconds to hide the fields. To avoid this, you could use the above mentioned method.
- Marked as answer by Payman BiukaghazadehEditor Sunday, May 12, 2013 3:12 AM
Friday, May 10, 2013 11:45 AMModerator
All replies
-
Hi Vandana,
To avoid those fields to be visible while loading and refreshing the record, go to field property of those fields from customization and uncheck the visible by default checkbox.
And write javascript to show those hidden fields where you want to.
Thanks,
Kabita
:)
Friday, May 10, 2013 10:15 AM -
By default the visibility property of field is visible. You can uncheck it. By doing this when form loads you wont get this field visible.
You can enable this field using javascript based on your requirement.
puja jain
- Proposed as answer by JLattimerMVP, Moderator Friday, May 10, 2013 11:28 AM
- Marked as answer by Payman BiukaghazadehEditor Sunday, May 12, 2013 3:12 AM
Friday, May 10, 2013 10:43 AM -
Hi,
This is a default behavior for the onload event functions, and it took one or two seconds to hide the fields. To avoid this, you could use the above mentioned method.
- Marked as answer by Payman BiukaghazadehEditor Sunday, May 12, 2013 3:12 AM
Friday, May 10, 2013 11:45 AMModerator -
The reason there is a delay is because Dynamics CRM doesn't load your JavaScript on the pages onLoad, it has a separate function that calls your onload script later. Thus the delay. The page renders completely before the JS is called. So the solutions above are your only option.Friday, May 10, 2013 6:02 PM