I have javascript on my form for user interactivity and I want to disable it for the form displayed on the Thank You page when you choose Show Submitted Form.
I also have a download button and expected that if the app could find the download button then I could tell it not to run my code but for some reason it does not work. Here is the code I am using to detect the download button, I have also tried other methods of detecting the button without any success.
if ($('#sub-download-btn').length > 0) { }else{ //My Code Here }
Also tried looking at the page URL to see if it contained the word submit.
if (window.location.href.indexOf("Submit") > -1) { }else{ //My code here }