Print

SetUserFieldSettings

This function set visible settings(internal, external, groups, system) for user field. User field should have settings „for all users”.

Syntax

SetUserFieldSettings("FieldTitle", "InternalUsers", "ExternalUsers", "Groups", "SystemUsers");

Function arguments

  • FieldTitle – (String) The title of user field
  • InternalUsers – (Boolean) Enable internal users
  • ExternalUsers – (Boolean) Enable external users
  • Groups – (Boolean) Enable groups
  • SystemUsers – (Boolean) Enable system users

Return value

This function returns Boolean.
This function return false if user field has settings not „for all users”. Otherwise function return true.

Examples

Example 1:
Set only groups for field „Customer”

SetUserFieldSettings("Customer", false, false, true, false);
Czy artykuł był pomocny?
4 na 5 gwiazdek

1 rating

5 Stars 0%
4 Stars 100%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
How Can We Improve This Article?