Created
April 4, 2019 18:57
-
-
Save jhned/c04ddc3fc2191befb4e0110ee905a5f8 to your computer and use it in GitHub Desktop.
Ninja Forms If Statement
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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
Relevant links:
https://developer.ninjaforms.com/codex/custom-field-templates/
https://codex.wordpress.org/Javascript_Reference/wp.template