Why doesn't this work:
<input type="text" name="givenName" <% if(givenName) {%> value="<%= givenName %>" <% } %>/><br/>
It throws a reference error saying givenName is not defined, which it may not be and is the reason for the conditional.
Rob you want to check if (locals.givenName)
<input type="text" name="givenName" <% if(locals.givenName) {%> value="<%= givenName %>" <% } %>/><br/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With