• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1416
  • Last Modified:

DropDown List box selection change form view

I have a form with the general user name date etc and 2 further views of the same form with different data input text boxes etc.on the main form (defaultView) I have a  dropdown box with the following selections which I have entered manually. The selections are View 1, View2, and View3. depending on the selection by the user depends on what view of the form they see. How do I  set this to change the view when the user select view2 etc. ?
I have tried to set a rule on the listBox dropDown properties. The condition I set was View = view2
Add action set to change view. This isnt showing on my add actions.
How can i do this please without opening another form ?
0
digger6955
Asked:
digger6955
  • 3
  • 2
1 Solution
 
clayfoxCommented:
Switch view action is only availabel on a button, cannot be done on a field change.
So either add a button - to switch view to what has been selected in the dropdown, but this adds another click.
Or if you only have 3 views just have three buttons, each for a specific view.

If you are really cool :)
You can spice up the buttons by formating them to look like hyperlinks or to create a simulated tabbed interface.
Have the same header and buttons on each view and then hylight the selected button on each view.

Another method is to have three sections on one view rather than three seperate views. Then have the sections hide based on the values in your dropdown and you can do exactly what you want to accomplish if you really want a dropdown interface.
0
 
digger6955Author Commented:
Cool :-)

Love the idea of the tabbed interface as I wanted to stear clear of buttons .I know its another question but I am still very new to this.howdo I create the simulated tabbed interface? Is this easy to do ?
0
 
digger6955Author Commented:
I didnt like the button solution that I knew I could create. However I never thought of the simulated  tabbed solution . Again great answers to what may seem easy questions to the experts but is a throw the bl**dy PC out the window syndrome to me. Thank you.
0
 
clayfoxCommented:
The tabs are pretty simple once you get the idea.

So you make your button uniform, I usually give them a strong border and then they typically are adjacent to each other.

Then give the Section a strong border as well and the button sits directly above it.

Then there are formating rules on each button.
If view = 1 Bold the font
and the button action is to set the view = 1
then the next button is the same except for 2
Then as you click buttons it becomes bold and the other are not.
I have done this with sections in the same view, and just had then section one one top of the other and had conditional formating if view not = 1 hide, etc
But there is no reason you could not do this with views as long as they were formatted the same on the top, but it might not be quite as fluid since there is more overhead on a view switch.

Just take it step by step and experiment.
There may be some more information or examples at www.infopathdev.com I know other guys there showed this to me originally and they may have blogged about it.
0
 
digger6955Author Commented:
A very big Thanks for your patience and understanding. I will experiment  and I am sure the form will be good.Another problem solved this is good learning.
Thanks again
Rod
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now