← Home
🔥0 DAY
0 XP
Client Scripts · Lv 2
🍼 Script Kiddo · ×1.001/421

Make 'Assignment group' mandatory only when state = 2.

Difficulty

set_mandatory.js
01function onChange(control, oldValue, newValue, isLoading) {
02 if (isLoading) return;
03 ▢ ▢ ▢ ▢('assignment_group', newValue == '2');
04}

Choose the right block