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

Hello, I not sure how to code this where it need to be invisible base on either of 2 conditions:

attrs="{'invisible': ['|', ('load', '=', True), ('project_name', 'not in', 'Field Service')]}"/>


Version = 17.0 enterprise

Can any please help?

Thank you very much!!

Avatar
Discard
Best Answer

Hi,
You can write it follows:  

invisible="load == True or project_name not in 'Field Service'"


Thanks

Avatar
Discard
Author

Perfect! thank you!!!

This is wrong, it should be (according to you old condition)

Niyas Raphy (Walnut IT)
1 giờ trước
Câu trả lời hay nhất
Hi,
You can write it follows:

invisible="load == True or project_name not in 'Field Service'"

ah i have wrongly written as and, changed to or

Author

Thank all, Yes, I realized it should be "or" and make the adjustment. Very much appreciate your help.

Best Answer

Previous answer is wrong, it should be (according to you old condition)


invisible="load == True or project_name not in 'Field Service'"

Avatar
Discard
Related Posts Replies Views Activity
0
May 25
35
0
Feb 25
201
2
Oct 24
3129
1
Jun 19
5320
1
Jan 17
3249