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

Can I have a VBCS array that is indexed with a string?

edited Aug 4, 2020 5:28PM in Visual Builder 1 comment

Content

Let's say I have a page with 20 input text components on it, and I have a need to do 3 things on each component:

  1. color the label of the textbox based on some array lookup
  2. put an icon (i.e. ?) next to each label based on some array lookup
  3. add custom messages below each textbox based on some array lookup

Currently, in my page code, I am doing something like:

  1. To color the label, I am calling a function using:style.color="[[ $application.functions.showChangesColor($application.variables.varChangeLog, 'oj-input-text-1813279182-3', 'info') ]]"
  2. To put the icon, I am calling another function using :style.visibility="[[ $application.functions.isEmpty($application.functions.returnLookupArray($application.variables.varChangeLog, 'element_id', 'oj-input-text-1813279182-3')) == true ? 'hidden' : 'visible' ]]"

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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