
內容簡介
Electric Enquiries 可以將任何網頁表單變成靈活的查詢表單,讓您可以在整個網站上建立多個查詢表單。只需在您選擇的 HTML 元素周圍包裝一個簡單的短碼,您就可以在幾分鐘內擁有一個專業、簡單或複雜的電子郵件查詢表單。它支持所有標準的表單元素,包括文件上傳。
使用方法
像平常一樣編寫您的表單元素,使用您需要的任何輸入、單選按鈕、下拉等等,確保為每個元素設置 name 屬性。
然後,不是將您的表單元素包裝在 form 標籤中,而是直接在 Electric Enquiries 短碼中包裝它們:
[electric-enquiry from="[email protected]" to="[email protected]" button="Send Enquiry" message="Thank You<br/>We will get back to you shortly." subject="Website Enquiry"]
在這裡加入您的表單元素
[/electric-enquiry]
‘from’ 屬性設置將發送查詢的電子郵件地址,而 ‘to’ 屬性設置將接收查詢的電子郵件地址。
設置 ‘subject’ 屬性將覆蓋預設的電子郵件主題,使用指定的主題。
設置 ‘button’ 屬性將覆蓋預設的按鈕文本(‘Send Enquiry’),使用您喜歡的任何文本。
您可以通過使用由 Google 提供的值設置 recaptcha-key 和 recaptcha-secret 屬性,向表單添加 Google Recaptcha(v2)。
外掛標籤
開發者團隊
原文外掛簡介
Electric Enquiries turns any web form into flexible enquiry form, enabling you to have multiple enquiry forms throughout your website. By just wrapping a simple shortcode around the HTML elements of your choice, you can have a professional, simple or complicated email enquiry form up and running in minutes. It supports all standard form elements, including file uploads.
Usage
Code your form elements as you normally would, with whichever inputs, radio buttons, selects etc that you need, ensuring that you set the name attribute for each element.
Then, instead of wrapping your form elements in a form tag, simply wrap them in the Electric Enquiries shortcode instead:
[electric-enquiry from="[email protected]" to="[email protected]" button="Send Enquiry" message="Thank You
We will get back to you shortly." subject="Website Enquiry"]
Your form elements here
[/electric-enquiry]
The ‘from’ attribute sets the email address that the enquiry will be sent from, and the ‘to’ attribute sets the address it will be sent to.
Setting the ‘subject’ attribute will override the default email subject with the one specified.
Setting the ‘button’ attribute will override the default button text (‘Send Enquiry’) with whatever you prefer.
You can add a Google Recaptcha (v2) to the form by setting the recaptcha-key and recaptcha-secret attributes with the supplied values from Google.
