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

Hi,

I would like to refresh my current form. Based on clicking button, a boolean fields is changed in True/False. When this boolean fields is True, I want to enable another button. This is working as expected bt the issue is I have to reload the record. I want to do it by coding instead of manuall reloading. Can anyone help ?

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

You can hide button with property attrs in view. E.g. 

<button name="myInvisibleButton" attrs="{'invisible':[('myField','=','False')]}>

Above will hide button if myField is false.

 

Marek Mosiewicz

http://consultantodoo.com

Ảnh đại diện
Huỷ bỏ
Tác giả

I have already applied this attrs in my case. But I have to reload the page everytime.