Important Update: Some Community URL Redirects are Under Maintenance. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom button is not working within tab

RamanMinhas
Collaborator II

Hi,

 

When i put custom button within tab ,it stop working and throw function not defined error. 

 

here's the code.


<button onclick="download()">Download</button>
<script>

 

 

function download(){
//code
}

</script>

RSA Archer Custom Objects" data-type="spaceDavid PettyIlya Khen

1 ACCEPTED SOLUTION

Accepted Solutions

Ilya_Khen
Champion III

Most likely tab is not activated or open at the time you try this object.

Tabs are loaded and rendered upon opening them. Once you select another tab, previous tab is nullified in terms of visualization, and object would not be loaded from there.

 

Put your code to some section always visible out side of tab.

View solution in original post

4 REPLIES 4

Ilya_Khen
Champion III

Most likely tab is not activated or open at the time you try this object.

Tabs are loaded and rendered upon opening them. Once you select another tab, previous tab is nullified in terms of visualization, and object would not be loaded from there.

 

Put your code to some section always visible out side of tab.

Thanks llya but button should be within not default tab under some section.

Yes, I assumed. Then you will get such issues. Or you need to initialize your code, so every time tab is loaded, your custom object would be initialized.

Thanks, i would try pageload if it works.