Survey-library: Add support for arrays and nested values in condition text (visibleIf property) and text pre-processing (for example completeHtml)

Created on 5 Jan 2017  路  9Comments  路  Source: surveyjs/survey-library

Multiple text and matrix values can't be used in visibleIf and text pre-processing at the current moment, since their values contains nested properties and arrays.
For example "{bestPrice.minPrice} >= 10" will do nothing right now.
However, it should work.

a demo is required enhancement

Most helpful comment

@GuiAfonso sure you may use contains:
{variable} contains '1'

Thank you,
Andrew

All 9 comments

Implemented.

is this available in the latest version on surveyjs.org ?
i'd like to have a visibleIf condition based on a matrix value

@nelero I have just updated the zip on surveyjs.org, but do not update the npm packages yet.

Thank you,
Andrew

@andrewtelnov I have an array of number result of a checkbox, can I check if one number is in array using a visibleif condition?
{"variable":["1","2","3"]}
{variable}.contains('1')
Something like that

@GuiAfonso sure you may use contains:
{variable} contains '1'

Thank you,
Andrew

@andrewtelnov thanks bro, works perfectly.

Have a documentation with all conditions? To don't ask this silly question again.

Will do :-)

Awesome

Was this page helpful?
0 / 5 - 0 ratings