Forum Discussion

ArchiveUser's avatar
ArchiveUser
Qrew Captain
7 years ago

Formula using a text list field was working and now isn't

I have a multi-select text list field [Tools] that I am using in a formula. When items in the field are selected another field shows corresponding information. The formula below has been working for several months. I went in to add to it and now it is not working. I have several set up like this and I checked the ones I had not changed and they also are not working. What has changed with Text Lists that is causing this not to work? How should I rewrite this formula?

If([Related Department or Group] = 3 and Contains(ToText([Tools]), "ASR (Legacy)") and [Need Advanced Search] = "No", "sec-idm-ccna-mstr-asrlegacy-cbsalldata")

Thank you.

13 Replies

  • Then you should break down the other parts of the formula into pieces as well.  Perhaps the other data is also not what you expected.

    ie

    [Related Department or Group] = 3

     and then the part 

    [Need Advanced Search] = "No"


  • I've tried each of the above and the check box checked. But my original formula still doesn't work.
    Could it be the IF? Do I not need that part anymore?

    This is what I have
    If([Related Department or Group] = 3 and Contains(ToText([Tools]), "MFE"), "sec-idm-ccna-ssas-mfe-cbsalldata")&

    Should it be
    [Related Department or Group] = 3 and Contains(ToText([Tools]), "MFE", "sec-idm-ccna-ssas-mfe-cbsalldata")&




  • This syntax is correct

    If(
    [Related Department or Group] = 3 and Contains(ToText([Tools]), "ASR (Legacy)")
    and [Need Advanced Search] = "No", "sec-idm-ccna-mstr-asrlegacy-cbsalldata")

    So if that is not working then the data in the fields is not what you expected.   For a record that is not working, what is in the field 

    [Related Department or Group]

     and what is in the field

    [Need Advanced Search]

    Note that the "No" will be case sensitive, for example if the data has "no", then that will not be true.