Max length for first name not working in contacts.
Please help.
Thanks.
Please help.
Thanks.
<div class="row"> <div class="col-sm-3 col-xs-3"> <select name="salutation{{ucName}}" class="form-control"> {{options salutationOptions salutationValue field='salutationName' scope=scope}} </select> </div> <div class="col-sm-4 col-xs-4"> <input type="text" class="form-control" name="first{{ucName}}" value="{{firstValue}}" placeholder="{{translate 'First Name'}}" {{#if firstMaxLength}} maxlength="{{firstMaxLength}}"{{/if}}> </div> <div class="col-sm-5 col-xs-5"> <input type="text" class="form-control" name="last{{ucName}}" value="{{lastValue}}" placeholder="{{translate 'Last Name'}}" {{#if lastMaxLength}} maxlength="{{lastMaxLength}}"{{/if}}> </div> </div>
data: function () { var data = Dep.prototype.data.call(this); data.ucName = Espo.Utils.upperCaseFirst(this.name); data.salutationValue = this.model.get(this.salutationField); data.firstValue = this.model.get(this.firstField); data.lastValue = this.model.get(this.lastField); data.salutationOptions = this.model.getFieldParam(this.salutationField, 'options'); data.firstMaxLength = this.model.getFieldParam(this.firstField, 'maxLength'); data.lastMaxLength = this.model.getFieldParam(this.lastField, 'maxLength'); return data; },
Comment