Quote:
Originally Posted by ccplim
I am trying to set up some conditional check for my fields but where should I put them in? In the plugin itself or the main template? I have been playing around with the codes for days but just can't seem to get the conditional syntex right :down:
What is going to happen is that I will have 3 fields in my form, namely $radiochoice1a, $radiochoice1b, and normalanswer1.
If a member select $radiochoice1a as his answer, normalanswer1 will be disabled and no information can be entered in that field.
Else, if the member select $radiochoice1b as his answer, normalanswer1 will be enable.
Thanks!
|
ccplim,,,
I haven't had much time to help recently because of my job,,, but yeah you can use the standard if conditional to work out your issue...
What I recommend is downloading a few easy mods and take a look at the XML code... Look for mods that use the if statment allot...
Im still half way out of the PHP twilight zone and on top of that my job wont allow my ball and chain to come off very often...

Take a look at this site...>>>
PHP HELPER
If you still need help after checking over there,,, Give me until tuesday and I will assist U...
*************************************************
ccplim,,,
VB Text edit...>>>
delete both lines listed below...
HTML Code:
<td class="alt2" valign="middle" colspan="3">
<b>$vbtextquestion</b><br /> <<<......{{{delete this}}}
$vbtextexplain <<<......{{{delete this}}}
<div align="center">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
$messagearea
</td>
</tr>
</table>
</div>
</td>
</tr>
<if condition="$attachmentoption">
<tr>
<td class="alt1" colspan="3" align="center">
<div style="width:$stylevar[formwidth]" align="$stylevar[left]">$attachmentoption</div>
</td>
</tr>
</if>
<tr>
<td valign="top" colspan="3">
<p align="center">
<input type="submit" value="Submit" name="submit" style="font-family: Verdana; font-size: 10pt" class="button" />
<input type="submit" value="Preview" name="submit" style="font-family: Verdana; font-size: 10pt" class="button" />
<input type="reset" value="Reset" name="reset" style="font-family: Verdana; font-size: 10pt" class="button" />
</p></td></tr>
</table>
</form>
That should do the trick...
*************************************************
ccplim,,,
Using the disable feature seems to work better with ajax,,, the only problem is that I haven't worked with ajax modifications yet... Too many things going on now,,, so maybe next month If Im not burnt out with mod updates,,, I will attempt adding some ajax...
*************************************************
uberjon,,,
Beauts!