Create a 2 in 1 form

Hi,

Is it possible to create a 2 in 1 form in Plumsail?

In the image below, the user will select either a 'Yes' or 'No' answer in those questions.

Scenario1:
In question1: IF the answer is 'yes'
In question2: IF the answer is 'yes'
In question3: IF the answer is 'No'

Then I want the termination wizard (3) to appear and leavers post wizard to disappear (4).

Scenario2:
In question1: IF the answer is 'yes'
In question2: IF the answer is 'No'
In question3: IF the answer is 'Yes'

Then I want the termination wizard (3) to be hidden and I want the leavers post wizard (4) to appear.

If so, I want the review wizard to dynamically show all the fields that have previously been filled.

Is this possible? Or would you advise creating two separate forms?

Thank you for your help!

@Qman,

You can dynamically show/hide the wizard steps based on other fields value using the code from this article.

As previously discussed, you can use common fields to show completed fields.

1 Like

Hi, I have changed the code to my field names and it hasn't worked.

I want to show the 'Termination Wizard' when 'is the employee leaving' is a YES. IF the answer is 'No' I want the 'Termination Wizard' to be hidden.

fd.spRendered(function() { 
function showOrHideResolvedStep(resolvedTab) {
   if (fd.field('Is_x0020_the_x0020_employee_x0020').value == 'Yes' && resolvedTab !== null) {
    //show the second step, in our case Termiantion_Details
    fd.container('Wizard0').widget.tabs.splice(1, 0, tab3);
}
if(fd.field('Is_x0020_the_x0020_employee_x0020').value != 'No') {
//hide the second section, in our case Termiantion_Details
fd.container('Wizard0').widget.tabs.splice(1, 1);
}
}
fd.spRendered(function() {

var resolvedTab = fd.container('Wizard0').widget.tabs[1];

//call showOrHideTerminaion_DetailsStep when a user changes the status
fd.field('Is_x0020_the_x0020_employee_x0020').$on('change',function() {
showOrHideResolvedStep(resolvedTab);
});

//call showOrHideResolvedStep on form load
showOrHideResolvedStep(resolvedTab);

});

@Qman,

Please please all code within one spRendered event handler. Also check the control internal names, as the Wizard0 is the name of the control from the article.

Then, check the browser console for the errors and share the screenshot.