Visual Task Board UI Policy Error

Marcel H_
Tera Guru

I have users that asked for Visual Task Boards to be set up recently, but now when attempting to drag and drop between lanes they get a UI Policy violation error message. I don't know what causes this, since mandatory fields are filled in, and there are no known UI Policies on changing the Assigned to (which is the lanes they're trying to move between).

find_real_file.png

3 REPLIES 3

Marcel H_
Tera Guru

I found out that this was a UI Policy enforcing a mandatory field, but on a field that is only visible to a specific role based on ACLs. I had to change the UI Policy to add a script that would only apply and set the field mandatory if the current user has that role.

 

Execute if True:

function onCondition() {

  if (g_user.hasRole('ROLE_NAME')) {

g_form.setMandatory('FIELD_NAME', true); 

  }

}

 

Execute if False: 

function onCondition() {

  g_form.setMandatory('FIELD_NAME', false);

 

}

myl
Kilo Explorer

Hi Marcel, can you tell me which policy this might be and where you added the script? I'm having the same issue for when users are moving a card from the In Progress lane to the Completed lane in a Guided VTB. Thanks.

In my case it was a custom UI Policy that was causing the issue. Once I figured out which one it was I added the script above in the script section of the UI Policy that was causing the issue and that resolved the problem.