![]() |
Each From with Select Option
field298 Single Line Text Box
Instead of free input I wanted to show a select dropdown to validate input. There were a ton of options, so I created an array, and then looped through the array to create the <options>. A first blank option was also added. Template PHP Code:
HTML Code:
<select class="primary" name="userfield[field298]" id="cfield_298" tabindex="1"> PHP Code:
|
You can't use vBulletin template syntax inside of a condition. Now it checks if it literally equals the string '{vb:raw userinfo.title}'. Changing it to the following should work, given that the $userinfo array variable is available.
HTML Code:
<vb:if condition="$bbuserinfo['field298'] == $userinfo['title']"> |
Ugh, I knew that. Got too dialed in on the array and using options withe a text input to remember the basics.
Thanks so much :) https://vborg.vbsupport.ru/external/2017/05/3.jpg |
All times are GMT. The time now is 10:45 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|