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.
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/>