Hidden Form Inputs - Post ID 286250

User 2865930 Photo


Registered User
6 posts

Hi
Is there a way to set a hidden input on a form with a specific value (not defaultValue, that doesn't work)?
I need it to be in the format '<input type="hidden" name="_next" value="https://mysite.com/thanks.html"/>'

I'm using a third party form submission email website (as my client only has minimal functionality hosting and no website email capability - although wants pro hosting functionality :| ) and they require that the form is sent to them with a line in this format to redirect to a 'thanks' page on the client website rather than the third party generic one.

I know that I can edit the exported html, but, if there's a way, I'd rather do it within the program so that it's retained in the .rsd file in case I forget to re-edit in the event of changes in the future.

Many thanks.
User 187934 Photo


Senior Advisor
20,271 posts

You can either use an html element and place the code in that then set the html element to display none or use a regular input of your choice and set it to display none. The value can be set using jquery.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2865930 Photo


Registered User
6 posts

The sound of head hitting desk - I'd not thought of the HTML element.

Thank you very much Eric.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.