Skip to main content
Nintex Community Menu Bar

Setting Option Buttons in a choice field rendered as buttons

  • March 30, 2017
  • 7 replies
  • 30 views

Forum|alt.badge.img+3

I have a form, I'd like to setup as tabbed viewing. I have the "Choice" control setup to render as buttons and a javascript variable name of "TabRules".

I want to use a button control, that when it's pressed it goes to the next tab. Presumably, by setting a javascript function that sets it? 

I'm using the following code. 

NWF$('#' + TabRules).find('input:radio[value="Start"]').attr("checked","true");

(Start is one of the values of the choice buttons.) 

What am I missing? Thanks in advance. 

7 replies

Forum|alt.badge.img+8

Hi ‌,

Have you already checked this Nintex Xchange source?

Cheers,

Rick


Forum|alt.badge.img+10
  • March 30, 2017

Try using this

NWF$('#' + TabRules).attr('checked', true);


Forum|alt.badge.img+3
  • Author
  • March 31, 2017

Hi Rick.  Yes. I can setup the tab browsing. What i'd like is to have a button at the bottom of the form that says something like, "Save and continue", that will then, using javascript, "change the tab".  (By selecting an item in the choice list.) 

Does that make sense?  


Forum|alt.badge.img+3
  • Author
  • March 31, 2017

Thank you, Sojan. How would the code above show it what "tab" to move to? 


Forum|alt.badge.img+4
  • March 31, 2017

‌,

Could you provide some screenshots to possibly show what you're trying to achieve?

From what I gather, you have it where you can click any of the tabs up top and that portion of the form will show and now you want it if they click a save or next type button, it will move from say, tab1 to tab2?


Forum|alt.badge.img+10
  • April 2, 2017

You can set a value to a text box control to hold the position of your tab. On button click you can set a value using the have script.


Forum|alt.badge.img+2
  • January 22, 2018

This is what I used.  It clicks the button, which changes everything associated with it in one go:

var objRequestType =NWF$('#' + varRequestType);

objRequestType.find('input:radio[value="'+strCurrentTabName+'"]').click();

"varRequestType" is the ClientID variable set to the Choice control ('render as buttons' selected inside the control).

"strCurrentTabName" is just text of the item I wish to click.

Thanks,

~~Kolten