input field validation

You’d probably want to use something like this:

{% if widget_data.product_names.value %}
<div class="coupon-ad">
<h3>For a limited time, get 50% off {{ widget_data.product_names.value}}! </h3>
</div>
{% else %}

{% endif %}

Further information is available here: If statements - HubSpot docs