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

  • 19 January 2017
  • 9 replies
  • 4 views

Badge +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

Userlevel 5
Badge +14

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?

Badge +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.

Userlevel 5
Badge +14

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?

Badge +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."

Userlevel 5
Badge +14

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.

Badge +3

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

Userlevel 5
Badge +14

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

or in general, anything what supports runtime functions.

Badge +3

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

Userlevel 5
Badge +14

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

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

Reply