You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Validation rules, global transfer $fields problem

edited Apr 19, 2026 10:16PM in Visual Builder Studio for HCM

I'm building validation rules in a global transfer transaction. One of the rules is based on the ActionReasonId field. Even after the employee fills in this field, the variable doesn't always have a value. I have the impression that there's some delay and the rule fails.

Below is the log command:

const motivoAcao = $fields.actionOccurrences.ActionReasonId.$value();

console.log('1- motivoAcao: ', motivoAcao);

console.log(2-'motivoAcaoFields: ', $fields.actionOccurrences.ActionReasonId.$value());

In the first console.log, the variable doesn't have a value, but immediately afterwards I log the same field directly using $fields.

Does anyone know what's happening and if there's a way to solve this?

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!