Web Form - End User
The Web Form End User widget is a powerful and effective tool that allows you to embed existing Web Forms in your own web application. This means that users will be able to enter data through the designed Web Form without leaving your product.
HTML Tag And Launcher
The HTML tag for this widget is:
<qrvey-webform-enduser config=...>
This widget needs an extra script for proper support in all browsers:
<script type="module" src=”https://<WIDGETS_URL>/qrvey-webform-enduser/qrvey-webform-enduser/qrvey-webform-enduser.esm.js”></script>
(For all browsers support)
Configuration Object
The table below provides general information about each property of this widget’s configuration object along with a description of the expected value. The Required column indicates whether the property is required for the configuration object to work properly.
Property | Value | Required |
---|---|---|
webformid | String , WebformID containing the webform | Yes |
server | String , Domain URL in which the application is in | Yes |
style | String , External CSS Stylesheet URL | No |
defaultAnswers | Object Array , Option to fill an answer (just for work textFields) with default values. Multiple fields can be added, it only needs questionID and the data(string) to be inserted. Example: [{id:"UMLFTXTT",data:"Default value"}] | No |
Note: Refer to the FAQs if you don’t know where to find any of the required configuration properties.
Sample
In this example, we have the configuration object to display the Web Form. This shows the minimum configuration object required to embed the Web Form End User widget.
Note: webformid
must refer to a valid and active webform defined on your Qrvey instance.
var configWebForm = {
style: "", //CSS Stylesheet URL
webformid: "zuioM6maV", // This is an example. Replace with your web form id.
server: "https://your_qrvey_domain",
defaultAnswers: [{id:"UMLFTXTT",data:"Default value"}] // Option to fill a textField with default values. Multiple fields can be added, it only needs questionID and the data(string) to be inserted. Replace the example id with yours.
}
<qrvey-webform-enduser config="configWebForm"></qrvey-webform-enduser>
<script type="module" src="https://<WIDGETS_URL>/qrvey-webform-enduser/qrvey-webform-enduser/qrvey-webform-enduser.esm.js"></script>
<qrvey-design-widgets settings="configWebForm"></qrvey-design-widgets><script>
See It In Action
See the widget in CodePen: