自定义表单

适用范围:任意地方均可使用

调用方式:根据后台创建的表单格式调用提交接口、配合ajaxForm.js和layer.js,默认模版里已引入

调用自定义表单

<form class="ajaxForm" method="post" action="{$domain}/api/form/form/submit1">
    <div class="input-warp">
        <label><span>*</span></label>
        <input name="content[Name]" placeholder="Name">
    </div>
    <div class="input-warp">
        <input name="content[Country]" placeholder="Country">
    </div>
    <div class="input-warp">
        <label><span>*</span></label>
        <input name="content[E-mail]" placeholder="E-mail">
    </div>
    <div class="input-warp">
        <input name="content[Company Name]" placeholder="Company Name">
    </div>
    <div class="input-warp">
        <label><span>*</span></label>
        <input name="content[Phone]" placeholder="Phone">
    </div>
    <div class="input-warp">
        <input name="content[Address]" placeholder="Address">
    </div>
    <div class="input-warp">
        <label><span>*</span></label>
        <textarea name="content[content]" placeholder="Message" style="resize: none;"></textarea>
    </div>
    <input name="id" value="3" type="hidden">
    <input name="url" value="{$url}" type="hidden">
    <button type="submit">SEND MESSAGE</button>
</form>

调用自定义表单

调用sass表单,请自行查看默认模版代码案例,对外加密中...
文档最后更新时间:2024-01-02 17:19:31