• Resolved pixelshrink

    (@pixelshrink)


    Hi, is it possible to only show fields and their labels if the field is not empty? I’ve found the :ifNotEmptyAddLeft etc. options, but they don’t seem to allow the HTML tags I want to display if a field isn’t empty (e.g. making an email address into a link).

    {email:ifNotEmptyAddLeftRight:<br>Email: <a href="mailto:##"></a>}

    • This topic was modified 8 months, 1 week ago by pixelshrink.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author berkux

    (@berkux)

    Hi pixelshrink,
    try the following syntax please:

    {email:ifNotEmptyAddLeftRight:<a href="mailto:##">LINK</a>a##}

    Thank you for using the JSON Content Importer Plugin.
    Bernhard

    Thread Starter pixelshrink

    (@pixelshrink)

    Thanks very much. I managed to get it working with a slight amendment, showing the email as the link:

    {email:ifNotEmptyAddLeftRight:<br>Email: <a href="mailto:##">{email}</a>##}

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hiding fields if they’re empty’ is closed to new replies.