The target iframe idea on @jonathan 's link , looks like it works well. Although I am not able to test it fully just yet. It even seems you do not actually need the iframe, just a target name…
I have also used formtools.org to implement a php form into an iFrame in Hype and while somewhat limiting I can have my Hype and Form too. http://www.formtools.org
With this method you can stay on the same page if you want or create a navigation to move to another page.
By the way this is also a great way to data-mine copy from a copywriter or author, and convert it into XML. That in turn can then be used in automated publishing in something like Adobe inDesign or Illustrator.
Inside this zip file you will find contact.php (add to your resources) and a symbol template (you can import this into any document). The contact.php has two calls to the mail function. The first you need to change “EMAIL ADDRESS” to any email address you want to receive notification to. Basically the script sends a notification to the person who fills in the form and a notification to another address to tell you that someone has posted something using the form.
Goes without saying this needs to be done on a server that can handle php.
Sorry for the delay. Here is a template with some ideas for a checkbox and dropdown.
These are built with Hype and there is a result text area where hopefully you can see how to get the output. I’ll leave it up to you how you can incorporate them into the original form template. Of course if you get stuck then we will be on hand to help you out.
I'm using contactForm-v2 and formElements-v1, but I can't get it to verify that the box is checked before sending.
I also need to be able to re-enter the email and verify that they are correct.
First of all I apologize, as I am working with google translate.
What I am trying to do is, that it can be validated that the fields are not empty, that it can compare and validate the email field, and finally that the check is selected.
There is a result field, which only helps me to verify that it is selected.
and since I'm testing it locally, I can't find a link with contact.php
I think you'll need two basic things for this to work:
You'll probably want to put an ID on the animating checkbox element ("Pasted") itself instead of its parent symbol element. This is because your checkBox() function gets called and puts the "checked" class on that instead. I called this "checkbox" for simplicity.
You'll need verification code in the contactFormSendMail() to look for this. I'm putting this at the top:
var isChecked = hypeDocument.getElementById('checkbox').classList.contains('checked');
And then some code below to see if it is checked:
if(isChecked == false) {
return;
}
Like the other blocks, you'll probably want to make a message field and populate it if it isn't checked.
if (email != email2) {
hypeDocument.getElementById('email-status').innerHTML = "Email Does Not Match";
hypeDocument.getElementById('email2-status').innerHTML = "Email Does Not Match";
return;
}