Skip to main content

Search

Use Variable within QueryList function in RichForms

Answered

Comments

1 comment

  • Matthias Walter

    Hi Atilla Özer,

    you can use expression placeholders as well in functions e.g. using a window variable like this:

    window.varP=2;

    return [[@Web.GetFirstValueForQuery('contacts7', '<Query><Where><Eq><FieldRef Name=ID /><Value Type=Number>[[=window.varP]]</Value></Eq></Where></Query>','Title')]];

     

    BR Matthias

    0

Please sign in to leave a comment.