preSelected Radio Buttons

Former Member
Former Member $organization

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

 

 

Parents Reply
  • 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...

Children
  • Click trigger would be:

    $('input[type=radio][value=508]').trigger('click');

    but if you put that in a $(document).ready(); then the page will ALWAYS select that option on every load. Not sure the best way to make sure you only do that the first time. First (and simultaneously worst) thought would be to add a dummy price zone ordered first for the code to look out for and simultaneously hide -- that way you know if you start with it selected, that was the first page load and can execute the rest of the code based on that.

    That said, it's looking like all of what I've suggested is a pretty terrible idea and should probably be avoided!

  • Former Member
    Former Member $organization in reply to Nick Reilingh

    haahaa! all this for a simple button click! well thanks for all your input. Maybe the TNEW team will build these kind of things into future builds where we'll have a system table true/false, on/off parameter that will allow us choose what we'd like preSelected.

    Thanks everyone :)
    LG 

  • Hi Lisa!

    Suzie Davidson from the Web Products team chiming in here. TNEW does offer a URL structure that you can use which will pre-populate a zone specific radio button on your best available page, which is available in version 5.0 and greater.

    Please open a TASK ticket in the Web Products workspace when you are ready to begin your upgrade so that you may take advantage of the latest functionality TNEW has to offer.

    Cheers,

    Suzie 

     

     

  • Oh, Nice!

    Let's get that added to the documentation!