MyBB Community Forums

Full Version: If radiobutton is checked, extra content appears ...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 ...
It can be done with a javascript. I don't know much about js, but I'm sure you can do it.