Thanks everyone.

I'm easy person so I use the CSS to hide it just like JmixIII
mentioned.
something like this.

View
------------------------------------
<script>
      jQuery(function(){
        jQuery('.hidden').hide();
      };
</script>

{{extend 'layout.html'}}
<table>
{{=form.custom.begin}}
<tr><td>Field1: {{=form.custom.widget.field1}}</td></tr>
<tr><td class="hidden">Field2: {{=form.custom.widget.field1}}</td></
tr>
{{=form.custom.submit}}
{{=form.custom.end}}
</table>

On Nov 2, 12:32 pm, JmiXIII <[email protected]> wrote:
> Hello,
>
> For hidden field I usually used <p style="display :
> None>{{=form.custom.widget}}</p>
> But you can still access the value from code so it depends your needs.
>
> JmiXIII

Reply via email to