You are viewing limited content. For full access, please sign in.

Question

Question

Unable to Submit a form due to a custom HTML entry

asked on May 30, 2024

Hi Everyone, 

I am trying to create a form that would allow users to choose an option between uploading a document, adding a link or a custom field where they can add data. 

 

Attached is the script that I have created to achieve this goal however, I am unable to submit the form when I am testing. 

After removing the custom HTML field from the form creation I am able to submit the form. 

Can someone please help me understand where I went wrong or what else has to be configured to achieve this goal?

 

Thank you!



 

0 0

Replies

replied on May 30, 2024

Is the form giving you an error message? Either as a toast or in the dev console?

Your attached code is an HTML page which would not load in its entirety in a custom HTML field. You could build the HTML within the JS Sandbox and copy it over to the custom HTML field but its hard to figure out your intent of this field.

0 0
replied on May 30, 2024

I am not receiving an error at all. Whenever the custom HTML field is added even though the form is not filled the submit button doesn't work. I tried clicking on submit without filling the required fields and it didn't  show value required. 

I am creating a form for a printing service where people can submit attachments and/or links for the data they want printed. I wanted to provide them with the option to choose from the drop down and be able to add multiple documents or links where the data can be found for printing. 

0 0
replied on May 30, 2024 Show version history

I agree that it's a bit unclear what you're trying to accomplish.

It is worth noting that the client-side changes to the contents of a custom HTML field are not saved, they are considered static content, not inputs/fields, so even if you add dropdowns, file inputs, etc., none of that is going to be submitted with the form and it's not going to benefit from validation or anything.

You'll still need actual fields on the form to capture the data and to leverage the built-in rules/validation, but you also shouldn't be putting css or javascript directly inside the custom HTML; that should be done in the css/js section of the form where it is more easily noticed/maintained and less prone to break.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.