isHtml Property

10 views
Skip to first unread message

MadSmol Qwert

unread,
Apr 8, 2025, 5:53:59 AMApr 8
to ZnetDK
Pascal, hello! The manual describes the isHtml property for class="zdk-datatable". The fact is that when displaying the value of a field with the is HTML property in input, the html syntax is observed : <b><font color='green'>RR-02F</font><b> How can I isolate it so that the value of the field in input matches the value of the field in the sql table, without HTML tags? Thanks!

ZnetDK

unread,
Apr 11, 2025, 4:32:33 PMApr 11
to ZnetDK
Hello,
You must distinguish between the data to be displayed in HTML in the datatable widget and the data to be edited in a form.

For example, if you want to format the customer name in HTML in the datatable, your controller action should return both a property named 'customer_name_for_display' and another property named 'customer_name'. The 'customer_name_for_display' property name is the one used for the datatable (for the 'field' property), the 'customer_name' property name is the one used for the input field ('name' attribute) in the data form.

Sincerely,
Pascal
Reply all
Reply to author
Forward
0 new messages