MyBB Community Forums
If radiobutton is checked, extra content appears ... - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Support (https://community.mybb.com/forum-72.html)
+---- Thread: If radiobutton is checked, extra content appears ... (/thread-8618.html)



If radiobutton is checked, extra content appears ... - LeX- - 2006-05-01

What sort of coding is needed for this? When i check a certain radiobutton, new elements appear ... for example "the away system" ... If "I'm Here" is checked, there's no need for the awayreason and the returndate to be seen ... if you check "I'm away" the page reloads or something and the textboxes appear for filling in your reason and date of return.

If away you must see this ::

[Image: afwezig.jpg]

If not away you must see this ::

[Image: aanwezig.jpg]

I allready tried

<if condition=$awaycheck[no]== yes <then>

...

</if>

But then you need to submit the page first, then it checks which radiobutton is checked ...


RE: If radiobutton is checked, extra content appears ... - Smethead - 2006-05-02

It can be done with a javascript. I don't know much about js, but I'm sure you can do it.