How can I show a form within a form?

How can I show a form within a form?

Comments

  • I have a form designed, and I would like another form to popup depending on what the user initiates on the main form. I would like them to be able to go back to the main form from the secondary form as well. How can this be done?

  • Hello.

    To do this, you would need to use a Sub Dialog Data Flow. First, you will need to have your main form and sub form created. You can use a Show Form step in any flow and pick your main form for the purpose of showing it upon flow execution. Youll need to make another flow that will have its Behavior Type changed to "Sub Dialog Data Flow". You can change the Behavior Type in any Flow in the Properties panel of that flow under [b]Settings -> Behavior Type[/b]. Within this flow that is acting as our Sub Dialog Data Flow, we will use a Show Form step again and this time we will pick our secondary form. You would then map the initiating button to the "ChangeData" End Step and the cancel button (if applicable) to the "Cancel" End Step. You dont need to map anything to cancel if nothing applies.

    Now we need to go into the Form Designer of the main form and use a specific control to work with the Sub Dialog Data Flow that was created. In the Form Designer, we will need to find the [b]Sub Data Flow Button [/b]Form Control and apply one to the form somewhere. This is going to be the button that will show us our secondary form. The Sub Data Flow Button is going to ask for a Flow ID, for this purpose we are going to use the Flow ID of our Sub Dialog Data Flow.

    Once this is mapped, you can execute the flow showing the main form and see the initiated Sub Data Flow Button initiate the secondary form, and the button on the secondary form bringing us back to the main form.

    [color=rgb(127, 140, 141)][font=Roboto][img]att1[/img][/font][/color]

Sign In or Register to comment.