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

VB Validation on Position Working Hours and Frequency

edited Nov 5, 2025 10:19PM in Visual Builder Studio for HCM

Summary:

Requirement is to validate:

  1. Working hours on position pages and raise error if value entered is not between 0 to 40 hours
  2. Working Hours Frequency on position pages and raise error if value selected is not weekly.

Content (please ensure you mask any confidential information):

In Request a New Position, both the Working Hours and Working Hours Frequency error does not trigger

In Request a Position change, the Working Hours error is triggering but not the Working Hours Frequency  

Version (include the version you are using, if applicable):



Code Snippet (add any code snippets that support your topic, if applicable):

  function runCondition(context) {    const { $fields, $value, $numberValue } = context;

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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