locked
JavaScript - Hide or Remove Form from Form Selector/Form List? RRS feed

  • Question

  • Does anyone know if there is a way to hide or remove a form name or label (whatever you like to call it) from the Form Selector list/navigation when a form loads?:

    I know that this can be done with applying Security roles to forms, but in our case, users may have access to more than one form.  We are trying to avoid confusion when people fill out the form so I don't want them to have the ability to select another form.  Does anyone know how I can accomplish with JavaScript or by some other method?  Any help is appreciated.  Thanks!

    Wednesday, June 19, 2013 6:05 PM

All replies

  • Hi,

    You can achieve this my using below java script code

    function FormLoad()
    {
    document.getElementById("crmFormSelector").style.display = "none";
    }


    call the FormLoad Method in load event of the form

    Regards,

    J Sampath Kumar,

    Osmosys.

    Wednesday, June 19, 2013 7:12 PM
  • This isn't supported with Rollup 12 and up.  Do you have any code that is supported that will work?
    Thursday, June 20, 2013 5:46 PM
  • Can you try below statement

    document.getElementById("a#crmFormSelector.ms-crm-FormSelector").style.display = "none";
    
    //OR
    
    $("a#crmFormSelector.ms-crm-FormSelector").css('display','none'); 
    

    Regards,

    J Sampath Kumar,

    Osmosys.

    Friday, June 21, 2013 3:17 AM