Gets the selected value of a field.


vcc.getFieldValue(fieldName: string, [key: string]): FieldValue[] | FieldValue | string | []


The name of the field.

The name of the field.

Return values

Depends on the field type:

  • multiple field: an array of FieldValue objects or an empty array
  • simple field: FieldValue object, the selected value or {String|Number} if key is specified and available or null if there is no selected object or key is unavailable
  • text field: the value of the field as a string


var age = vcc.getFieldValue('age');
var city = vcc.getFieldValue('city');
if (age >= 20 && age <= 30 && !city) {
    return false;

There are no comments yet.


Subscribe to our newsletter
or Contact us!
Please note that by subscribing to our newsletter, you agree to receive regular email messages from VCC Live about service related news and updates. By subscribing to our newsletter, you also agree that VCC Live will use your data in accordance with the applicable Privacy Policy until you unsubscribe from the newsletter.