Hello,
Is there a way to mark a form field as required? I know that validation can be used to ensure a field has a value, but I’m thinking something more like a red asterisk (*) next to the label of the field.
I tried doing this with no luck:
Area*
Any help would be appreciated.
Thanks,
Mike
Olga
September 9, 2011, 10:00am
#2
What version of dhtmlxFrom are you using?
Hi Olga,
We are using v3.0 and have the Enterprise license with DHTMLX.
Mike
tyfab
September 14, 2011, 11:10am
#4
any answer for this post ?
Nope. This would be a very useful feature.
Hi MikeyFreak!
I am using formData for form initialization. Its working fine for me. =>
label: “Customer Name * ”
Best regards
Mathy
[code]
formData = [
{type: "settings", position: "label-left", labelWidth: 100, inputWidth: 120},
{type: "hidden", label: "ID", name: "id", value: "", inputWidth:50},
{type: "input", label: "Customer Name <span style='color:red'>*</span>", name: "code",validate: "NotEmpty", value: "", inputWidth:50},
];
[/code]
Hi Olga,
I think it is not possible when initializing form using XML file. I think It is better to have that facility. Thank you Olga.
Best regards
Mathy
Olga
October 12, 2011, 10:38am
#8
Can you provide example of XML file where issue occurred?