• Resolved migver

    (@migver)


    Hi,

    I have a Dropdown DS linked to a google spreadsheet list with texts and values. It all works out great.

    However, I need to do a verification based on the Text and not on the Values (I use the values for some calculations afterwards). Something like:

    (function(){
    if (fieldname275 == “Teatro”) return “Teatro”;
    else return “nope”;
    })()

    But it only considers the Value…

    Can you please help me?

    Thanks in advance,

    Miguel

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @migver

    If you have ticked the option to submit the choices’ texts, and you want to access the text of choice selected, you must refer to the field with the |v modifier:

    (function(){
    if (fieldname275|v == "Teatro") return "Teatro";
    else return "nope";
    })()

    For pro or commercial product support please contact us directly on our site. This includes any pre-sales topics as well.

    Commercial products are not supported in these forums. We will happily answer this and any other questions you can have on our own site.

    Thank you.

    Thread Starter migver

    (@migver)

    Perfect, thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘IF with text instead of value’ is closed to new replies.