Hi there,
How can i render a specific field whilst on record view in record.js instead of running the views' render functionality which renders the whole view?
Thanks
Hi there,
How can i render a specific field whilst on record view in record.js instead of running the views' render functionality which renders the whole view?
Thanks
Hello Polys,
Using below code you can render the specific field.
var renderField = this.getField('<field_name>'); renderField.render();
Hope it will help.
-BPATEL
Hi Bhavesh Patel
I'm using version 7.5.2.2 Enterprise but I can't use .render( ) method, it says that is not a function, I don't know what I'm doing bad but in a method after a computation I use:
var fieldToRender = self.model.get('fieldName');
fieldToRender.render( );
Can you help me?
self.model.get('fieldName'); gives you the value of that field, not the field itself.
For example, if I had a Contact record self.model.get('first_name') would be 'Francesca', so Francesca.render() would not make sense.
Try using the getField method Bhavesh Patel suggested:
var renderField = this.getField('<field_name>');
FrancescaS
PS. You should try to upgrade, 7.5 went off support some time ago, even 7.8 will be off support by end of year, unfortunately.