11-17-2011 06:03 PM
How to Disable the Add & Review Button
*Updated with the correct ISF code (the previous code, in case you saved it, was to actually escape apostrophes. That will be posted seperately.
Note that this solution might not work in your environment - you might have to modify it based on your installation.
Enjoy!
Common_disableAddAndReviewButton()
{
if ( Moment == 'ordering' )
{
var theForm = document.forms[0];
var buttonCt = 0;
for( i = 0; i < theForm.elements.length; i++ )
{
if( theForm.elements[i].type == "submit" )
{
if ( buttonCt == 0 || buttonCt == 2 )
{
theForm.elements[i].disabled = true;
theForm.elements[i].style.visibility="hidden";
}
buttonCt++;
}
}
}
}
11-17-2011 06:03 PM
11-17-2011 06:03 PM
This is GREAT - I added a new Java Script and set it to "when form is loaded" and when I did some test reqs - no Add & Review button !!!!
11-17-2011 06:03 PM
To apply this to all services, if you have RC 2006, in script manager, under the "Add this script to the following events on all forms" heading, you just need to check the box in the script manager when you're creating this script that says "when the form is loaded."
11-17-2011 06:03 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide