Meeting not held

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tothewine
    Active Community Member
    • Jan 2018
    • 419

    #1

    Meeting not held

    How do i make "not held" meetings invisible in the calendar
  • victor
    Active Community Member
    • Aug 2022
    • 1172

    #2
    In Administration > Entity Manager > Meeting > Formula > Before Save Custom Script you can create a formula that will clear the assignedUser and users fields:

    PHP Code:
    if (status == 'Not Held') {
        
        $i = array\length(usersIds) - 1;
        while ($i >= 0) {
            usersIds = array\removeAt(usersIds, $i);
            $i = $i - 1;
        };
        
        entity\clearAttribute('assignedUserId');
    } 
    
    Last edited by victor; 04-14-2025, 01:48 PM.

    Comment

    Working...