View Full Version : auto-select a subscription option in the drop down menu
AmazingRibs
06-17-2014, 12:12 AM
My client's site is only accessible if a paid member, there is only one option for subscribing, yet the drop down list says "Select" then the user has to selection the option. We'd prefer just have it selected already. When I put "select='true'" and the option is auto selected the form to select payment method doesn't show. I tried hiding the select, auto selecting it and displaying the payment options form but it's not populated with the subscription options. I'm guessing there's some behind the scenes ajax going on that populates the options form when the user selects but I can't seem to find it.
Any help?
vBNinja
06-17-2014, 12:33 AM
Its not selected = true
Its selected="selected"
AmazingRibs
06-17-2014, 12:34 AM
sorry, that's what I had. Still didn't work.
--------------- Added 1402968924 at 1402968924 ---------------
The form isn't populated with the subscription checkout options (credit card, paypal, etc.) and it doesn't have the subscription name label on it. Doesn't work by just auto selecting.
AmazingRibs
06-19-2014, 03:30 AM
Holy crap I got it. I spent WAYYYYYYY too much time on this, only gonna charge client half of hours though because I had no idea vb5 was going to be so crazy. Anyway, for those looking, here's the solution.
1) remove the <option value="">{vb:phrase select}</option> in the registration widget template
2) edit signup.js
3) once signup.js is in your editor do a (I use notepad++) search for "change(" ... find the closing parenthesis and put ).change() on it. BOOM! All good to go homie.
AmazingRibs
06-20-2014, 07:04 PM
turns out this doesn't work for the usersettings.js page where members can add subscriptions. Bummer! If anyone has any ideas for that one please post it up
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.