Hi Dylan,
THANK YOU !!!
After days searching on Google, I still couln't figure out what was happening with my "programatically ;)" submit button, then I found this topic !
I have the EXACT SAME issue, what a relief to find someone who could finally solve this.
I'm a beginner in html/js and stuff (started only 2 weeks ago) so I just copy/pasted your code which did…
...
Nothing :(
Then I noticed the last line looked like jQuery stuff (you confirmed this at the beginning of this topic), so I thought it would be a good idea to add this to my code :
but it didn't help.
Of course I changed PortalAction and RedirURL to my own variables.
I also put alert('xxx') right before and right after your code : I can see both but nothing happens.
Since I know nothing in jQuery, I don't know if I should add a ; right after the last line of code :
$( '#accept' ).click()
I tried though, but it didn't change anything neither.
Thanks to you I'm really close to the behavior I want to get from my portal page, but maybe I need help from a more experienced person.
Could you suggest something obvious I may have missed ?
I can post my code if needed, but it's part of a biggest website so it would look a bit weird out of its context).
Edit :
I changed PortalAction and RedirURL to static urls, didn't help.
I also commented this line :
//submit_form.display = 'hidden';
Shouldn't I be able to see the form appear on the page then ? I mean, btnSubmit should be visible, right ?