Hello
how to hide required fields ?
i have checkbox when it true it hide required fields then when click on save cannot save because the required is empty
Hello
how to hide required fields ?
i have checkbox when it true it hide required fields then when click on save cannot save because the required is empty
Hi MOH,
You can make a field invisible by giving invisible attribute. In the case of the the required field, you cannot save the record untill you enter data in that field.
You can try like this, make the field as required based on the value in the checkbox.
<field name='test_field' attrs="{'required':[('check_field', '=', True)]}"/>
Along with the above you can add the attribute to make the field invisible.
Thanks
Skapa ett konto idag för att ta del av exklusiva funktioner och engagera dig i vår fantastiska community!
Registrera dig| Relaterade inlägg | Svar | Vyer | Verksamhet | |
|---|---|---|---|---|
|
2
mars 23
|
4143 | |||
|
0
nov. 17
|
7146 | |||
|
2
mars 15
|
6624 | |||
|
1
mars 15
|
9414 | |||
|
How to hide fields?
Löst
|
3
mars 15
|
31262 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.