• Resolved kayamurer

    (@kayamurer)


    Hi,

    Is the following possible with either the free or premium plugin?

    I need to show multiple values from acf fields in a single html object. Each value should become a hardcoded title which only appears when the corresponding acf field has a value. For example “Architect: John Doe”. “Architect:” is the title and “John Doe” the value from the acf field.

    I think i need to work with a single html object because some values have really long texts anmd will span across multiple lines. If this content is in a single html object all text will wrap nicely and move following text down.

    i saw the conditional logic in the docs but i guess this is just for single fields an objects and will not work with my situation?

    Thanks and kind regards
    Kaya

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

    (@oleksandrz)

    Hi,

    Conditional logic is available for all objects and elements, including “HTML”. So if you need just dynamically set the “HTML” field value, you must be able to use it. It’s available in the “FREE” version also.

    If you need just to change the “HTML” object field value, you can use “Action” as: https://prnt.sc/X9TaGzcefx1h

    The “HTML” object also has a “Merge” action, which allows adding content dynamically. So if you need to have multiple values added dynamically, the usage will look like this: https://prnt.sc/bUtDH3QqFM4E

    We remain at your service.

    Thread Starter kayamurer

    (@kayamurer)

    Hi,

    Thank you for the super quick answer.

    The “merge” option was exactly what I needed. I have now built a template using your code examples and everything works as desired.

    Thanks for the fantastic support!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conditional display of text in html object’ is closed to new replies.