Skip to content

Instantly share code, notes, and snippets.

@jhned
Created April 4, 2019 18:57
Show Gist options
  • Save jhned/c04ddc3fc2191befb4e0110ee905a5f8 to your computer and use it in GitHub Desktop.
Save jhned/c04ddc3fc2191befb4e0110ee905a5f8 to your computer and use it in GitHub Desktop.
Ninja Forms If Statement
<script id="tmpl-nf-field-label" type="text/template">
<# if (data.type != 'html') { #>
<div class="nf-field-label"><label for="nf-field-{{{ data.id }}}"
id="nf-label-field-{{{ data.id }}}"
class="{{{ data.renderLabelClasses() }}}">{{{ data.label }}} {{{ ( 'undefined' != typeof data.required && 1 == data.required ) ? '<span class="ninja-forms-req-symbol">*</span>' : '' }}}</label></div>
<# } #>
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment