Hi Luoy,
Thanks for your assistance. I've tried the following function below and I'm not sure if I'm very close or completely wrong. Basically I have a Buy Now URL that I only want to show the button if the URL is filled in. If it's empty, then I don't want a button to show at all. Does the code come any close to what I'm trying to achieve?
[wpv-if field="buy-now-url" evaluate="empty($url)"]No url given[/wpv-if] (rather than say No url given I'd rather this was just blank)
[wpv-if field="buy-now-url" evaluate="NOTempty($url)"]<button type="button" class="fombutton" value="Buy now" onClick="window.open('[types field="buy-now-url" output="raw"][/types]');">Buy now</button>[/wpv-if]
Thanks,
James