I have a drop down field on a marketing form (mapped to an option set on the Lead entity) and I need to make it ‘required’ - but when I make it required it automatically sets the default value to the first option, rather than an ‘unassigned value’ (which is how it displays on the Lead entity. Is there a way to set the field as required and keep the value as null/blank?
Thanks you saved my day. I can confirm that the workaround with HTML hacking fixes the issue.
Hi partner,
Don't forget to mark the verified answer by clicking Yes.
This will help other users quickly navigate to this theme.
Thanks.
Hi Floman,
You could try following steps:
1. Unchecked the Required checkbox in Field properties.(Back to initial default setting)
2.1 Copy required="required" attribute from any previous field that has been set to required.
2.2 Paste the attribute into select tag.
2.3 Copy <span class="lp-required" style="color: rgb(255, 0, 0);">*</span>. (The red symbol for required field)
2.4 Paste the element after option set field label tag.
Go live
3. The result would meet your requirements.
Regards,
Clofly
Hi Floman,
Sorry to say that you have uncovered a bug for us. I'll get that opened and in the queue for a fix. As a kind of hacky workaround, I created the option set and put SELECT ONE as the first option in my set. The bad side of that is that if someone doesn't select anything, it will think something is selected. You could try putting code behind it to surface an error but that is beyond my skillset.
Thanks for letting us know about this issue.
Megan
Please mark as Verified if this answers your question!
André Arnaud de Cal...
291,965
Super User 2025 Season 1
Martin Dráb
230,817
Most Valuable Professional
nmaenpaa
101,156