Jump to content

Recommended Posts

Posted

Hello,

I'm creating a donation button for my website publishers, I want to make this field not appear on articles (record) if it doesn't have a $value.

The button is always visible

Screenshot_33.png.a840ecede4aa679f9952497865b6eefe.png

Screenshot_32.thumb.png.d4f51007e8626d74f525cd6bb8a580a3.png

<a href="https://www.paypal.com/donate?business=$value&no_recurring=0&item_name=Donate&currency_code=BRL" data-ipstooltip="" _title="Donate" target="_blank"><span style="font-family:arial,helvetica,sans-serif; font-size:16px;"><span class="ipsBadge MangaInfo"><i class="fas fa-hand-holding-usd"></i> <strong>Donate</strong></span></span></a>

 

The question is... Is there any code I can enter to make the button only visible if a $value is set?

 

Posted
2 minutes ago, opentype said:
{{if $formValue}}

// Your code

{{endif}}

Wrap it all like this. 

Thanks for this one more opentype, it worked perfectly!

  • 1 year later...
Posted
On 7/5/2021 at 1:44 PM, opentype said:
{{if $formValue}}

// Your code

{{endif}}

Wrap it all like this. 

 

Resurrecting the topic 😅

 

Using 'Yes/No' field type, I can make that...

Yes = appear a text
No = nothing appears

Would you know how to do this?

 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...