i want to create custom rule and message for it, so i write
defineRule("required", (value) => {
if (value === "")
{
return `The ${field} is required`;
}
return true;
});
i want to text something for the message, as you can see, i write field, but its not the way how it works, what should i write instead of
${field}
to see my inputs name?