Friday, July 27, 2012 6:26 AM
i have infopath form with 6 views. on each view i have use 6 buttons for menu navigation. Form stages are from 1 to 6. on stage 1 only button should visible, on stage 2 button 1 and button 2 should visible and so on.
Please tell how can i hide buttons.
Friday, July 27, 2012 11:57 PM
I think you can create additional field to keep current stage. Further you can use rules on buttons something like:
if currentStage<pressedButtonNumber then currentStage=pressedButtonNumber ; changeView(pressedButtonNumber).
And also you have to set formatting rules to show only allowed buttons like that:
For button 4:
If currentStage<3 then hide
In such case you'll be able to see only allowed buttons, which will be able only increase current stage.
PS: don't forget to set initial value (for example in the FormLoads rule).