You need to sign in to do that
Don't have an account?
Michael M
Add hidden component to Web-to-Case generated HTML
Hello,
I have generated HTML for a form, with the native web-to-case feature. The form will be posted on several different websites, so I need to add another, hidden, element (field?) to the form, which captures the information of the web page from which the form was filled in. Can anyone assist? Thank you.
I have generated HTML for a form, with the native web-to-case feature. The form will be posted on several different websites, so I need to add another, hidden, element (field?) to the form, which captures the information of the web page from which the form was filled in. Can anyone assist? Thank you.
You can use following tag - Mention just type="hidden".
Let me know if this helps.
You need to specify name of custom/standard field name in name and id property whose value you want to capture.
Hidden fields are mostly used to capture static data.
Let's take an example, you have setup Web-to-Case. You have 'Channel' field that need to capture if case has been created from Web-to-Case then the value of Channel field will be 'Web'. So you won't give this field to UI to select it by customer.
In this scenario, you will take hidden input, name of the field will be Channel field API name and value will be 'Web'.
Whenever Case will be created by using Web-to-Case then value of Channel field will be set to 'Web'.
This is one of the scenario where you will use hidden fields. Please let me know if you have any queries, else you can mark it as Best Answer.
Thanks.