Skip to main content
Nintex Community Menu Bar

fn-IsMemberOfGroup(\Admins\") refresh not working?"

  • Jan 19, 2017 5:03 PM UTC
  • 9 replies
  • 23 views
  • Translate All

Forum|alt.badge.img+3

I have a single line textbox to show True or False and every time I add myself or remove myself from the Admin group, the textbox does not update. Below is the formula I used:

fn-IsMemberOfGroup("ADMINS")

9 replies

Forum|alt.badge.img+14
  • Scholar
  • Jan 19, 2017 5:38 PM UTC

can you post your config?

where exactly have you placed that formula? into 'Default value'?

if so, then it is evaluated just in NEW mode and just at form load...

how do you test it?

Translate

Forum|alt.badge.img+3

Here is the Single Line Textbox:

197796_pastedImage_1.png

Below is the form and the "True" single line of text is the isAdmin field.

197811_pastedImage_3.png

As you can see, I currently am in the ADMINS group right now.

197810_pastedImage_2.png

Once I remove myself from the ADMINS group and go back into the form, it still says True so it's not refreshing based on who is in the ADMINS group.

Translate

Forum|alt.badge.img+14
  • Scholar
  • Jan 19, 2017 6:05 PM UTC

Once I remove myself from the ADMINS group and go back into the form

what exactly means 'go back to form' - do view/edit existing item?

have tried to create new item?

Translate

Forum|alt.badge.img+3

Yes, I click the View/Edit button on the list item. I have tried it by creating a new item. That's where I get "True" to show up and after I make the changes and remove myself from the ADMIN group and click on the view/edit item and it still shows "True."

Translate

Forum|alt.badge.img+14
  • Scholar
  • Jan 19, 2017 7:45 PM UTC

then read once again my very first post, single line text control's default value is evaluated just and only in NEW mode and just and only on form load.

if you created new item after you removed yourself from group, you would get false.

Translate

Forum|alt.badge.img+3

What form controls can I use that check it every time a new item is created and viewed/edited?

Translate

Forum|alt.badge.img+14
  • Scholar
  • Jan 19, 2017 8:03 PM UTC

calculated value control (do not forget to switch on recalculate in NEW mode).

or in general, anything what supports runtime functions.

Translate

Forum|alt.badge.img+3
  • Author
  • Jan 19, 2017 10:34 PM UTC

That's exactly what I needed to know. I appreciate all of the help!

Translate

Forum|alt.badge.img+14
  • Scholar
  • Jan 19, 2017 11:35 PM UTC

how easy it is, just to put right question happy.png

if you got resolved your issue, set the question answered.

Translate