Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1896 Lượt xem

I want to hide char field when another Boolean field is clicked true?

HOw to do this?

<field name="x_studio_code_reference" attrs="{'invisible': [('x_studio_is_an_asset','=','True')]}" />

I used this but nothing happen.

please help me

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

Update the code like this by removing inverted coma from 'True' ,

<field name="x_studio_code_reference" attrs="{'invisible': [('x_studio_is_an_asset','=', True)]}" />

Thanks

Ảnh đại diện
Huỷ bỏ