Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to select a value from filter with JavaScript

Hi all hope you're fine,


I'm new with Qlik sense and I'm with mashup editor trying to select a value from a filter object on page load through JavaScript like in the below image:

Untitled.png

I was trying by selecting it looking for an Id but I didn't found a way, I did some tests into document ready method but without luck.


Someone has an idea or help to achieve it?

Thank you!

1 Reply
ajaykakkar93
Specialist III
Specialist III

Hi,

You Can tru using Field API.

app.getObject('CONTAINER ID','OBJECT ID').then(function(reply){

app.field('FIELDNAME').toggleSelect("FIELD VALUE", true);

});

This is a simpla example replace the Following

  • CONTAINER ID(DIV ID)
  • OBJECT ID(QS OBJECT ID)
  • FIELDNAME
  • FIELD VALUE TO BE SELECTED

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting