cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
mai-kel
Nintex Newbie

Why are my hidden controls visible in view mode?

Jump to solution

Hi all,

I have a form with several containers in it. Some of these containers should be hidden as soon as a specific hook ("Print view") is set (like in this case the "Customer Data" container is hidden in print view):

Unfortunately this is only working in edit mode. As soon as I switch to view mode, all containers are visible. But I am pretty sure that this has already been working in the past... I checked all , if there is something like "inViewMode", overruling my hide controle rule, but there isn't.

Does anyone else has this problem? Is it maybe a NINTEX ‌?

Cheers

mai-kel

Labels: (2)
0 Kudos
Reply
13 Replies
Automation Master
Automation Master

Re: Why are my hidden controls visible in view mode?

Jump to solution

can you maybe provide the actual code you are using in a rule to hide these so that we could replicate the conditions? 

0 Kudos
Reply
Automation Master
Automation Master

Re: Why are my hidden controls visible in view mode?

Jump to solution

can you post how does your rule looks like?

what type of control is that 'Print view' checkbox? can you post its configuration?

do you have any javascript or CSS in place that might overrule form's rule(s)?

0 Kudos
Reply
mai-kel
Nintex Newbie

Re: Why are my hidden controls visible in view mode?

Jump to solution

Sure:

So the control which needs to be checked (in order to hide sections) has the name "Druckansicht"

If the hook is set, the complete container "Project Data" should be hidden.

This is the rule I used:

Druckansicht==1               Druckansicht is type Yes/No

then

Ausblenden (Hide)

As I said, as long as I am in edit mode this is working, but as soon as I switch to view mode it is not working any more?!?

EDIT, I just saw the following

 

Might it has something to do with this configuration:

 

The print view checkbox is only visible in edit mode (sichtbar = visible | Bearbeitungsmodus = edit mode) - does that mean that also all rules bound to that control are valid in edit mode?

 

Seems so....

0 Kudos
Reply
mai-kel
Nintex Newbie

Re: Why are my hidden controls visible in view mode?

Jump to solution

Sure:

So the control which needs to be checked (in order to hide sections) has the name "Druckansicht"

If the hook is set, the complete container "Project Data" should be hidden.

This is the rule I used:

Druckansicht==1               Druckansicht is type Yes/No

then

Ausblenden (Hide)

As I said, as long as I am in edit mode this is working, but as soon as I switch to view mode it is not working any more?!?

EDIT, I just saw the following

Might it has something to do with this configuration:

The print view checkbox is only visible in edit mode (sichtbar = visible | Bearbeitungsmodus = edit mode) - does that mean that also all rules bound to that control are valid in edit mode?

Seems so....

0 Kudos
Reply
Automation Master
Automation Master

Re: Why are my hidden controls visible in view mode?

Jump to solution

so your appearance setting says the control is only visible in EDIT mode.

so in VIEW mode the control is not even created in page DOM model, hence in panel's rule you likely compare undefined==1, if it doesn't errors out at all.

remove appearance setting from yes/no control, place it into separate panel and apply show/hide rule on the panel if you want to have yes/no control available in VIEW mode.

0 Kudos
Reply
mai-kel
Nintex Newbie

Re: Why are my hidden controls visible in view mode?

Jump to solution

I did exactly as suggested. Same result.

Unfortunately hidding a control is not only hidding a control but more a deactivation of that control ...

0 Kudos
Reply
Automation Master
Automation Master

Re: Why are my hidden controls visible in view mode?

Jump to solution

The way that you have this setup seems strange. 

You are indicating that you'd like the Yes/No Control to not be visible in a mode that isn't Edit Mode. This would mean that it would not be created in the DOM tree in any mode other than Edit Mode, which would mean that rules that depended on it wouldn't work. 

But that's not all. 

Because ALL controls are disabled in View / Display Mode It would also mean that you would need a user to first Check that box, Submit the Form, and then open it back up in View Mode for any of your panels to be hidden, which seems like a strange way to approach this... 

Why not just automatically hide the Secret Panel in View Mode instead??? 

Then you wouldn't need the Yes / No control in the first place.

Using a Rule, this is a simple task. Select the Panel you want to hide: 


And then create a Rule for it with the following code: 

In Edit Mode: 


In Display Mode: 




If you really must have it to be a toggled option in the View Mode, then the only thing I could think of to do would be to make a Rich Text / HTML control that had some html inside of it for a checkbox control that you could manipulate in all view modes, and subsequently base a rule off of, but that seems like a lot to do for something that could probably just be hidden all of the time in View Mode. 

I hope that this helps. 

Reply
Automation Master
Automation Master

Re: Why are my hidden controls visible in view mode?

Jump to solution

I can't believe that, you must have likely missed some settings.

I've just tested it - I placed a Yes/No control on a (blue) panel which is shown in edit mode and hidden in view mode by a formatting rule.

it works as suggested, Yes/No control is 'available' in view mode and can be used in calculations/rules

0 Kudos
Reply
mai-kel
Nintex Newbie

Re: Why are my hidden controls visible in view mode?

Jump to solution

Believe me.  I just did an additional test:

Small list with a title field and a yes/no field. If YesNo field is set to yes, title is hidden. This works easily:

My list:

First item (view mode):

First item (edit mode):

Second item (view mode):

Second item (edit mode):

All good.

Now I am adding this display setting (visible only in edit mode) to my Yes/no control:

Looking into my list shows me the following:

First item (view mode):

First item (edit mode):

Second item (view mode):

Second item (edit mode):

So I guess nmarples‌ is right, when he is saying:

"You are indicating that you'd like the Yes/No Control to not be visible in a mode that isn't Edit Mode. This would mean that it would not be created in the DOM tree in any mode other than Edit Mode, which would mean that rules that depended on it wouldn't work."

Cheers

mai-kel

0 Kudos
Reply