-
I'm working with a Vuetify VForm and I've run into a bit of a snag. I have a VTextField that I need to make it mandatory. Despite setting required=True, it doesn't seem to enforce the field as a required input. I'm unsure how to properly implement rules in Python to achieve this. Could someone provide a snippet of Python code that shows how to set up a validation rule for a VTextField within a VForm to make it compulsory? Here's my code: Thanks a lot. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Since that vuetify.VTextField(
label="defectName",
v_model=("defectForm",),
required=True,
__properties=["required"],
) |
Beta Was this translation helpful? Give feedback.
Since that
required
property is not listed in Vuetify API it is getting missed by trame, but can dynamically be added by using__properties=
like described in the API here.Full example showing the solution