You need to sign in to do that
Don't have an account?
ckellie
Javascript Button not working properly
I have a javascript button called "sort products" related to an opportunity based on a custom field. We have related list hoverlinks enacted. If I click "sort products" at the top of the page in the related list, the page is refreshed within the hover window. Conversely if I scroll to the bottom of the page to where products related list and click "sort products" button, nothing happens.
Why wiould the button work as intended the if it is clicked in the related hoverlist, but not at the bottom of the page. Why this problem? How can I solve it?
Thank you
where is the js code?
The js code is in an opportunity line item object and is as follows:
It is also using the following class in the js:
Just wondering... could your problem be caused by creating a duplicate form everytime the button is clicked?
If you click the button at the bottom of the page before you click the button at the top of the page, does it function correctly but does it make the top button not work?
If this is the case, you may need to destroy the generated form if it already exists then recreate it on the button click action.
The button is on a related list on a standard ui page. I don't think this is the problem. This is working in one sandbox, but not in a second sandbox. Why would this be?