Skip to main content

Hi guys

 

Sorry if the title isn't very descriptive.. I'm having an issue with my nintex form not letting me use Javascript to show and hide sections with buttons on the view mode, for example a user will click a button and it will hide all of the other content but show the selected content requested from selecting the button.

 

I have enabled the buttons in the view mode also.

 

Here is my javascript

 

function ShowTab(Section){
    var rad = NWF$('#' + ButtonValueText);    
    NWF$(rad.find('label').Section]).click();
}

function ShowRiskArea(Section){
    ShowTab(1);
    var rad = NWF$('#' + chkRiskAreaTabs);     
    NWF$(rad.find('label')ÂSection]).click();
}

 

Kind Regards,

Jack

You can force the control in Edit mode instead of auto and have a rule to disable the inputs.
Be careful, all the positions calculations are done in absolute, so hiding shings with JavaScript is very complicated.

@jackcurtissm, may I suggest through all the form controls to be hidden within a single form panel as first step. Second, you can use a choice control, render them as buttons if you need to (not recommended) and when the control is = to a certain value, show and hide the panel. You can also use a rule to show and hide a control based on New, Edit or Display modes. 





 





There isn't much need for Javascript to do these things.


Reply