Required fields are not showing correctly in site.com
Last updated 2022-02-10 ·Reference W-1626749 ·Reported By 0 users
Summary
Required fields are not showing correctly in site.com
There are 2 flavours of this issue.
1. Contact and lead compound name fields show first name and salutation as required in preview mode.
In published mode, does not show as required, which is technically correct.
2. Checkbox fields always marked as required in published page.
In studio preview, does not show as required.
Repro
Contact and lead compound name fields repro:
0. In any org with publishable site
1. Create a form element on a page to either lead or contact object. This will auto add the Name fields.
2. Ensure "firstName" and "salutation" is not marked as required in studio, and then publish.
3. Preview page. firstName and salutation are marked as required.
4. View published page. Fields is not marked as required.
Checkbox field repro:
0. In any org with publishable site
1. Create a form element on a page to an object with checkbox field(s).
2. Ensure it is not marked as "required" in studio, and then publish.
3. Preview page. Field not marked as required.
4. View published page. Fiel marked as required.
Workaround
Contact and lead compound name fields:
none at this time
Checkbox field:
1. In studio, for each affected page/checkbox field, add a html attribute:
fixCheckBoxRequired=true
2. Add the following js to the head of the affected page(s)
<script language="javascript" type="text/javascript">
$(document).ready(function() {
$("li[fixCheckBoxRequired='true'] label span").css("visibility","hidden");
});
</script>
Reported By (0)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.