Skip to Content
Menu
This question has been flagged
2 Replies
2084 Views

i'm trying to make a field that can be fill based on day. if the relate day unchose, so it can be hide.
i've tried using attrs invisible but it can't be parse.
is there another way to make it invisible based on day?

Avatar
Discard
Author Best Answer

Mr.Shameem thank you for your answer. I've tried using your advice, but it still error.

Avatar
Discard
Best Answer

Lulu, 

Did you try this

<field name="your_field" attrs="{'invisible': [('day', '=', 2012-04-25)]}"/>

If do not work, you create a boolean field that is computed the visibility of the field. Then set attrs to that field.

Avatar
Discard
Related Posts Replies Views Activity
1
Aug 23
12546
1
Aug 23
11042
1
Jul 23
7223
4
Apr 23
8676
2
Feb 23
17590