Forum Replies Created
- AuthorPosts
brabox
ParticipantThank you Ally!
brabox
ParticipantThank you Allan,
I was able to get it just right.
brabox
Participanti have a button shortcode inside the success message where i would like to be displayed next to the Send button of the form
brabox
ParticipantThank you Ally,
#3 is the closet to what i want since i do not want it to take to another page.
I will try it out today.
Thank you!.
brabox
ParticipantThanks,
i will try out the plugin.
brabox
ParticipantThank you Josef777.
I thought there was another way, didnt know if that was the correct one.
Worked perfectly.
brabox
ParticipantPerfect Ally,
I had done the update through FTP but i guess i had to completely delete the iphorm folder instead of substituting it.
Now it id working fine!
Topic solved.
brabox
ParticipantAlly,
thank you again,above code worked perfectly.
Thanks,
Marco
brabox
ParticipantThank you Ally,
i had to add ” instaed of ‘ to make it work.
this is how it looks with more than one element.
<script>
jQuery(document).ready(function ($) {
$(".iphorm_22_31, .iphorm_22_54").attr('maxlength', '5');
});
</script>Thanks!
Marco
brabox
ParticipantHello Ally,
the length validator is working fine. i set it to minimum 5 and max 5. The error messages are working fine.
But what i wanted is the limit the # of characters the client can type in the field, i do not want him to go over X amount.
This is a simple HTML example for max 10 characters:
<input type=”text” id=”Textbox” name=”Textbox” maxlength=”10″ />
brabox
ParticipantThank you Ally, I received your email and it worked!!
For anyone else trying to accomplish this, this is how i got it to work and my setup.
In wordpress, i created 2 pages.
1 – Page name (Calculator) = with the quform shortcode – [iphorm id=”22″ name=”Calc Eco EN”]
2 – Page name (Resultpage) = I got my themes page.php and added my PHP code into the content area and saved it as a separate template (EXAMPLERESULT.PHP), then uploaded back via FTP to the child-themes folder. So when i created my 2nd page, I simply choose on the right hand side of wordpress (Template) my own template EXAMPLERESULT.PHP. (this link was also used on the URL of the PHP code below)In my child-themes-function I added Ally’s code which was on this link.
// Code from Themecatcher for Calculator 1
//function my_form_redirect($url, $form)
{
$data = array(
'nameqty' => $form->getValue('iphorm_22_1'),
'lnameqty' => $form->getValue('iphorm_22_23'),
'emailqty' => $form->getValue('iphorm_22_2'),
);$data = array_map('rawurlencode', $data);
$url = add_query_arg($data, 'https://www.mysite.com/resultpage/');
return $url;
}
add_action('iphorm_success_redirect_url_22', 'my_form_redirect', 10, 2);Now (only the begging of my PHP code) this is how my PHP code starts:
//define variables and set to empty values
$nameqty = $_GET ['nameqty'];
$lnameqty = $_GET ['lnameqty'];
$emailqty = $_GET ['emailqty'];So basically, $nameqty is getting [‘nameqty’] that is equal to iphorm_22_1. (each form will be different).
Br,
Marco
brabox
ParticipantThank you Ally,
I have sent an email.
brabox
ParticipantAlly,
Thank you for the link.
I have tried that link as well as This onebefore several times with no luck… I cannot find what i am doing wrong.
I saw that another user was able to accomplish this Here. But i could not get it to work.
Is there any email i can send you the link so you can take a quick look? i am sure it is something “small” easy that i am missing….
brabox
ParticipantAlly,
So my current setup looks like this.
Wordpress Calc page with this code inside:
<form action=”www.example.com/formcalculator.php” method=”post”>
[iphorm id="#_HERE" name="IPHORM_NAME_HERE"]
</form>formcalculator.php with my code which has the Unique IDs etc..from the quform Calc.
When i click send it works and all the data is being “read” into the formcalculator.php file.
The only thing that is NOT working is that now i can simply click SEND even though the form has all elements as REQUIRED.
Any ideas?
- AuthorPosts