Is there a way to write anything to a URL or in a system table that will preSelect a radio button on a TNEW single/selectSeating URL ?
Like if we wanted "Lawn Section GA" to automatically be selected when landing on this page?
http://support.arvadacenter.org/single/selectSeating.aspx?p=53988&z=0
Thanks
Lisa Girard
jQuery to the rescue:
Add to TN_Express_Purchase_Inst content type for the perf,
<script>$(document).ready(function () { $('input[type=radio][value=508]').attr('checked','checked');});</script>
Very brittle, i.e. easily breakable, but should do what you want!
YAY! That worked. I knew there was a way to make this work but was working from the URL instead. Thanks!!
Hopefully this trick with help others as well!
LG
Uh oh, you might want to do some more testing -- if you click a different radio button that causes a page reload, the script will trigger again and reset back to the lawn price.
The price doesn't update on initial load either -- so that's more of a starting point. You'd need to look into executing a click trigger on that element so that TNEW reloads with the proper price selected, and find some way to then prevent subsequent runs. Within the realm of possibility, but not quite as simple as initially thought...
I believe if all you want is to have by default for a particular radio selected, in the input for the button add "checked" in the appropriate radio.
example:
<input type="radio" name="button1" value="1"> first button not checked </input><br><input type="radio" name="button2" value="2" checked> checked by default</input>
Travis
Oops. Tnew. right ... nevermind.