Aller au contenu principal

FS_LIST get title from combobox selection in FS_LIST label

Commentaires

4 commentaires

  • Zendesk API User
    Author: pavone - 9/12/2014 9:50

    Hello,

    are you using FirstSpirit 5? Please note that in FirstSpirit 5 CMS_INPUT_CONTENT has been replaced by CMS_INCLUDE_OPTIONS. Here you can find more information regarding this component.

    For your label try

    <LABEL lang="*">if(!#item.st_organisation.isEmpty, #item.st_organisation, "")</LABEL>

    Best regards

    Tim

    0
  • Zendesk API User
    Author: ndegoeij - 9/16/2014 11:19

    Dear Tim,

    Thank you for your answer. However as I already mentioned I have tried the LABEL if statement and it does not seem to work.

    And as I forgot to mention we are using FirstSpirit 4.2.499.

    Best Regards,

    Nando

    0
  • Zendesk API User
    Author: pavone - 9/18/2014 7:35

    I'm sorry, of course I meant

    <LABEL lang="*">if(!#item.st_organisation.isEmpty, #item.st_organisation.value.name, "")</LABEL>

    #item.st_organisation will return an Option object, representing the entry you selected. Therefore you need to add .value that will return the actual value of the selected entry. In your case it is an Entity object. At last you have to add the name of the column that you wnat to be displayed.

    Best regards

    Tim

    0
  • Zendesk API User
    Author: ndegoeij - 9/22/2014 12:13

    Hi Tim,

    Thanks again for your reply. I had to look into your answer but it works like a charm.

    Best regards,

    Nando

    0

Vous devez vous connecter pour laisser un commentaire.