You can keep the controls in a seperate table and write an unbound rule to show or hide this table with controls and you can call this rule in the changed event of checkbox and view initialize.
event be like:
Changed event of checkbox,
if checkbox contains value "t"
show controls
else
hide controls
Hi Viktor
Step1:
Create an Item View :
=>Click on Contact TextBox and Untick Visibility
=>so when a view start, will only going to see firstName TextBox
Step2: Click On Rules
See Attached Rules
=>(First Configure) then set the properties of Text Box1 control (Configure)
=>Click Configure
Note [If you want to Hide/Show more than one textbox just add the statement:
"then set the properties of Text Box1 control (Configure)" and change Text Box1 name to the correct textbox ]
=>(Second Configure) then set the properties of Text Box1 control (Configure)
=>Click Confiqure
Results (Output)
Before the CheckBox is Ticked
After the CheckBox Is ticked
If u untick it
Regards
Elvis
Hi Skb_ev
This solution hide certain row and close the space in between, Unlike the one i provided before where it hide the textbox but the space remain.
See the following steps to successfully hide and unhide a Row.
Step1: Create an item view.
=>The Item view must have 1 row and 1 column and drag a table set it to 1 row and 2 column
=>drag another table to that item view that contains 1 row and 1 column (Repeat 4 times) e.g
Hint: All 4 table row and column has been inserted in 1 row for item view, see blow screenshot
Step2: Click the table for the view on top and go to rules
=> When the View executed Initialize
=> then set the properties of Table3 control (Confiqure)
Dear Elvis
Dear Widson
Thank you for your tipps. I will have a look at the server side rules and do some tests if this could speed up my views an forms a little bit.
But what I was asking for was a "switch visibility" action to prevent the "if control has value than show that else hide that". It would be much easier if I could say "if control changed then switch visibility for control x, y, z"
Like the ".toggle()" function in jquery.
It's the some
Dear Elvis
Thank you for your proposal but as I allready "said" to the other 2 guys:
I don't need a "howto" I was asking for a "switch visibility" function. I ALLREADY KNOW! that I could do it with "if this than that (else other that)".
I will create an "idea" at idea.k2.com
Thank you all
regards
Viktor