关于Force的webform的一些黑科技

2022-05-05

以下示例是关于Html中包含关于Force的webform的一些黑科技用法的示例代码,想了解关于Force的webform的一些黑科技的具体用法?关于Force的webform的一些黑科技怎么用?关于Force的webform的一些黑科技使用的例子?那么可以参考以下相关源代码片段来学习它的具体使用方法。

文件名:force-webform-hacks.html[英]:Some hacks for webform on Force源码类型:Html
<script>

// Make the label “Your Location” be visible on contact form on the Contact page
jQuery('.footer-ascend.contact-footer-block form fieldset.fieldset--webform-address legend.fieldset__legend span.fieldset__legend-text').removeClass('visually-hidden');

// On contact form, add “*” to labels on required items
jQuery('.footer-ascend.contact-footer-block form .form-item .is-required .form-item__required-marker span').replaceWith(function () {
    return '<span class="form-required-marker">*</span>';
});

</script>

<style>
/* Form */
.form-required-marker {
    color: #FF0000 !important;
}
</style>

本文地址:https://www.itbaoku.cn/snippets/785099.html