Skip to main content
Nintex Community Menu Bar

Can a Nintex form be made to move from section to section based on a checkbox or dropdown selection?

  • Sep 14, 2017 7:41 PM UTC
  • 5 replies
  • 19 views
  • Translate All

Forum|alt.badge.img+1

I have a request to create a form and at the beginning of the form, there are two choices.  Depending on the choice, they want the form to "advance" to the correct section.  i.e. - If it's a new request, go to Section 1.  If it's a change to an existing request, skip to Section 8.  Thanks for any help!

5 replies

Forum|alt.badge.img+14
  • Scholar
  • Sep 14, 2017 7:47 PM UTC

do you mean with "go to" to hide sections 1-7 and display section8 at the top of the form, or to navigate (set focus) to first control of 8th section, so having sections 1-7 still shown?

Translate

Forum|alt.badge.img+1
  • Author
  • Sep 19, 2017 6:14 PM UTC

Hi Marian - yes to your second case.  I want to be able to automatically have the cursor navigate to section 8 if a change is being selected and I still want sections 1-7 to appear.  Thank you.

Translate

Forum|alt.badge.img+14
  • Scholar
  • Sep 21, 2017 9:14 PM UTC

try following.

ChoiceCtrl, Sec1Ctrl1, Sec8Ctrl1 are all javascript variables configured for respective controls.

if 'Option1' is choosen in choice control, focus should be set to 1st control of section 1, otherwise to 1st control of section 8.

NWF.FormFiller.Events.RegisterAfterReady(function () {  
   NWF$('#'+ChoiceCtrl).change(function(evt){
       if (evt.target.value == 'Option1'){   
            NWF$('#'+Sec1Ctrl1).focus();
       }else{
            NWF$('#'+Sec8Ctrl1).focus();
       }
  })
})
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

‌ ‌ ‌ set focus‌ set value by other control ‌

Translate

Forum|alt.badge.img+1
  • Author
  • Sep 22, 2017 12:33 PM UTC

OK.  Thank you!

Translate

Forum|alt.badge.img+14
  • Scholar
  • Sep 22, 2017 1:27 PM UTC

did it work for you?

if so could you mark it as correct answer?

Translate