Skip to main content Skip to complementary content

selectValues method

app.field.selectValues(array, toggle, softlock)

Method used to select specific values in a field.

Parameters

Name Type Description
array Array Array of qFieldValues to select.
toggle Boolean  
softlock Boolean

If true, locked selections can be overridden.

Example

var app = qlik.openApp('c31e2aba-3b46-4b13-8b87-c5c2514dea1d'); app.field('LastName').selectValues([{qText: "Andersson"},{qText:"Bush"},{qText:"Obama"}], true, true);

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!