===== Form Mutation ===== Form Mutation offers the possibility to show and hide certain sections in a smartform tab) via onclick. This is reliaziable via radiobuttons as well as checkboxes, {{:software:tim:smartform:sf_form_mutator_1.png?200 |}}{{:software:tim:smartform:sf_form_mutator_2.png?200|}} In this example the green bordered section is shown and hidden. This is enabled through clicking on a radiobutton or a checkbox. \\ Optionally labels can refer to radiobuttons or checkboxes and control these. Furthermore radiobuttons or checkboxes can be hidden, in this case they are only clickable through their label. If checkboxes are used, they have to be assigned the attribute "value=true". ==== Smartform ====


radio A 1   
radio A 2   
radio A 3   


radio B 1   
radio B 2   
radio B 3   
== Necessary Settings == 1. The controlling radiobuttons have to have the class "formMutation". \\ The radiobutton, whose section should be shown when loading the smartform, have to have the attribute checked="checked". If the radiobutton should be hidden, it has to have the style attribute "display:none;" \\ 2. The
-elements that should be shown and hidden needs 3 classes. \\ The first class is "display" or "visibility". If the class "display" is given, the hidden
-element is assigned the attribute "display:none". If the class "visibility" is given instead, the hidden
-element is assigned the attribute "visibilty:hidden". The second class is the "id" of the controlling radiobutton. In this example it is "right_tab" or "left_tab". The third class is the "name" of the radiobutton group. In this example it is "tabs".