I want to create multiple stages form once stages complete then It as to go to next stage. Previous stages should readonly. It has to 7 stages.
I can able to divide the form multiple stages then I am unable complete default form is 1st for new item.Exiting item should be displayed based on tab value.
Please help me on it
UngdungccPosted Mar 18, 2024, 9:01 AM
I hear you! Creating a multi-stage form with different access levels for existing and new items can be tricky, but I can definitely help you with that. Here's a breakdown of your requirements and some solutions:
Requirements:
Possible Solutions:
There are a few ways to achieve this depending on the platform you're using. Here are two common approaches:
1. Using a Form Wizard or Multi-Step Form Library:
Many web development frameworks and form builder platforms offer built-in functionalities for multi-step forms. These libraries handle user progress, stage visibility, and validation.
Here's a general approach:
2. Custom Javascript Implementation:
If you're comfortable with Javascript, you can build the multi-stage functionality yourself. Here's a basic outline:
Additional Tips:
Resources:
Here are some resources that might be helpful depending on your chosen approach:
Feel free to ask if you have any further questions or need clarification on any of these points!
Tuhin PaulPosted Mar 16, 2024, 6:21 PM
Creating a multi-stage form with conditional visibility and read-only behavior in Power Apps can be achieved using a combination of techniques.
1. Setting Up Screens and Navigation:
Navigatefunction to control navigation between screens based on user actions.2. Form and Data Source:
3. Conditional Visibility for Stages:
Visibleproperty of controls to determine which stage is displayed.Visibleproperty of each screen to an expression likeVarCurrentStage.Value = "Stage1"for the first screen, and similar expressions for other stages based on the variable value.4. Read-Only Behavior for Previous Stages:
DisplayModeproperty of controls in previous stages toView. This will make them read-only.DisplayModefor Stage 1 and 2 controls toIf(VarCurrentStage.Value = "Stage3", View, Edit).5. Default Form for New Items and Existing Items:
Lookupfunction to retrieve the current stage value from the data source and set the variable accordingly.Jithu ThomasPosted Mar 16, 2024, 6:45 AM
1. Create Screens:
- Create multiple screens for each stage of the form.
- Or use a single screen and group sections for each stage.
2. Implement Navigation Logic:
- Use buttons or other controls to navigate between stages.
- On each button's OnSelect property, write logic to move to the next stage and make the previous stage read-only.
3. Make Previous Stages Read-Only:
- Use the DisplayMode property of controls to make them read-only.
- Set the DisplayMode property based on whether the current stage has been completed.
4. Handle Existing Items:
- Use the OnVisible property of screens to fetch and pre-fill data for existing items based on the tab value or any other criteria.
- Set the Default property of form controls to pre-fill data.
Sam HobbsPosted Mar 15, 2024, 11:09 PM
It sounds like the type of thing that Microsoft would call a wizard and the solution depends on the UI framework. Is the UI framework Windows Forms or WPF or ASP.Net or something else? The following is a sample for a WPF wizard.
Wizard Sample - Code Samples | Microsoft Learn
https://learn.microsoft.com/en-us/samples/microsoft/wpf-samples/wizard-sample