View Full Version : Checkbox stays checked in post preview?
Boofo
04-30-2011, 02:31 AM
I'm not sure how to go about doing this but I want to have a checkbox stay checked in the post preview only if it is checked before the preview. Otherwise, I want to leave it unchecked. How would I go about setting the conditional up for something like that? The php code is in the newreply_form_start hook and the template code is in the newreply template, if that helps at all.
HMBeaty
04-30-2011, 02:40 AM
Not sure if this would help at all, but here's a snippet of code from one of my modification that does something similar as far as keeping an option when going to a new page...
<input type="radio" name="positionapplying" value="{vb:raw pos2}"<vb:if condition="$vbgpc['positionapplying'] == $pos2"> Checked</vb:if> /> {vb:raw pos2}
Boofo
04-30-2011, 02:54 AM
Mine is a checkbox like the signature checkbox so that probably won't work.
But thank you for responding and trying. ;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.