ThemeCatcher

ThemeCatcher supports this item

Supported

This author's response time can be up to 1 business day.

1258 comments found.

Hi there,

Great form-seriously the best available and excellent documentation, so thanks a bunch!

All that isnt included in the documentation (as far as I can see) is instructions as to how to reduce the width of the ‘Message’ text area. I have tried changing the cols width from 45 to 25 in the main php file, but it doesnt seem to make any difference:

<textarea name="message" class="message-element" id="message" rows="7" cols="25"></textarea>

-unless it is something to do with me working on it locally? It is not yet live on a remote host yet.

Many thanks in advance for any advice you can give me.

x

Hi Doodark,

All form element sizes are controlled within the CSS for flexibility.

If you search your CSS doc for this class name, you can change it to your sizes.

.iphorm-inner .message-element

Thanks, TC

Thanks! Thats brill-and once again – well done on such an intuitive form design – with so much documentation included – this is a rare treat!

Hello So far so good. This is a very in-depth form, very useful.

I just would suggest providing some code to make spaces between element sections – right now it all appears sequentially without much spacing.

Thx

Thanks :)

You can change the spacing easily using the CSS styles margin-top and margin-bottom on the outer wrappers of the elements.

Hi,

Can the captcha word be randomised?

Hi, if you supply the code that can generate a random image it will work with the form.

Having a problem trying to submit the form after installing it on my website. Sent you an email regarding this with the specifics. I hope to hear from you soon.

Whenever I try to submit the form, this error shows up:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in mydomain.com/contact-form/classes/iPhorm.php on line 10

Please help!:(

That means your server is running PHP4 and the form needs PHP5 .

Hi,

This is a very in-depth form, very useful.

I’m looking for a way to customize the error message for each field in the form when it’s empty (required).

For example:

Last name is required First name is required Phone is required…

Please help me!

Thank you!

Hi

You will need to change the code of classes/iPhorm/Validator/Required.php to the code shown at http://pastebin.com/HNYkJe9w:

Then in your config.php file you can now pass in the message like so:
$name->addValidator('required', array('message' => 'Name is required'));

So you can now add a different message for each element.

TC

Hello !

First, thank you very much, for this nice script ;-) And please, sorry for my bad language..

I have to customize each of the ajax error messages.

For example I would like to change the style of the error message email fields:

<ul class="form-errors" style="display: block;">

to

<ul class="form-errors" style="display: block; margin-bottom: 30px;" /></ul>

Please, Can you tell me how I should do?

Thank you very much in advance !

aDy

Hi

You should just use CSS selectors to style them, such as:
.email-element-wrapper ul.form-errors {
    margin-bottom: 30px;
}

Hi, im getting the following error when inspected, and the form isnt submitting: Unsafe JavaScript attempt to access frame with URL **.com/contact-form/process.php”>http://www..com/contact-form/process.php from frame with URL .com/contact/.”>http://**.com/contact/. Domains, protocols and ports must match.

any help would be appreciated.

Can you send a link to the page so I can take a look?

why does the form post to a new page? in the demo it doesnt do this.

maaaaaan ive spent over an hour trying to figure out whats going on

I believe that means you have a javascript error on the page, so the form is falling back to submitting in non-javascript mode.

brilliant piece of work!

the only thing missing is the ability to have a field where you can enter an email address to send the email to, instead of having preset the receipients of the emails in the script.

can you advise or assist on how this can be added please?

You could have a field in the form, lets call it “recipient” and in config do

$recipients = array($_POST['recipient']);

Greetings,

Just bought this form. The help file you refer to on the item page, where do I find it?

Thanks

Stig

Hi, the help is in documentation/index.html, which will open with your web browser.

Excellent form :). I am very happy with it.

dls

dls Purchased

here is my error message

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8 .0; Windows NT 6 .1; WOW64 ; Trident/4.0; SLCC2 ; .NET CLR 2 .0.50727; .NET CLR 3 .5.30729; .NET CLR 3 .0.30729; Media Center PC 6 .0; .NET4.0C; InfoPath.3) Timestamp: Fri, 8 Apr 2011 11:22:32 UTC

Message: ‘undefined’ is null or not an object Line: 378 Char: 5 Code: 0 URI : /contact-form/js/plugins.js

thank you.

dls

dls Purchased

here is my error message

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8 .0; Windows NT 6 .1; WOW64 ; Trident/4.0; SLCC2 ; .NET CLR 2 .0.50727; .NET CLR 3 .5.30729; .NET CLR 3 .0.30729; Media Center PC 6 .0; .NET4.0C; InfoPath.3) Timestamp: Fri, 8 Apr 2011 11:22:32 UTC

Message: ‘undefined’ is null or not an object Line: 378 Char: 5 Code: 0 URI : contact-form/js/plugins.js

thank you.

Hi

Can you check Firebug’s net tab to inspect the contents of the Ajax response when you submit the form to see if there is a PHP error being displayed. If not, can you send a link to the page so I can take a look?

Hello ThemeCatcher,

Your form is working really well. I really like the style, the ease of css tweaking, the custom auto response mail it is all really great and of course make me look great :) , Thank you.

But I have a problem. I’ve built a particularly long form and when it is submitted and the required field is not entered it does exactly what it is supposed to it displays a dialogue box next to the field saying it is a required field.

Really nice. But the form is so long that when the submit button is pressed it just sites there and the user has no way to know that the required filed message is displayed further up on the page. The form appears to be broken and the user gets frustrated (and client).

So, is there any way to make the required field message display next to the submit button so the user knows there is an error? and best case, what the error is?

Thanks.

In js/iphorm.js, you can add code similar to below on line 69:
$('.submit-button-wrapper').after('<div class="error-message">There are some errors in the form, please check it over.</div>');

Hello, Thank you for this well done extension, i try to save data to database, all is ok, just need to know how to add some data that are not in the form : example want to add “Current date” or “IP address” ...

Thank you

In classes/iPhorm/SuccessHandler/Mysql.php on line 111 you can add in your own query parts:
$queryParts[] = "`date_added` = '" . date('Y-m-d') . "'";
$queryParts[] = "`ip_address` = '" . mysql_real_escape_string($_SERVER['REMOTE_ADDR']) . "'";

Rate you 5/5 !

Hello ThemeCatcher,

Your code worked wonderfully. The user can now get a heads up there is something wrong out of site. Thank you!

:-)

The only fields on my form are for the following:

1. Name 2. Email 3. Recipient drop-down box 4. Attachment 5. Message

There seems to be a lot of files and folders. Are they all necessary—such as “Swift”? Which folders, if any, can be removed without upsetting the functionality of iPhorm?

Thanks a lot.

They are all absolutely necessary.

What about the folders “examples” and “css” when clearly I’m using nothing inside of those. I’m just trying to avoid bloating my site with useless files.

Yeah you can delete examples and if you are using your own css you can delete css too.

Hello dude, this is one of best form php I ever see! (soz for my bad english..)

I have onde question…

I need to create new fields in the form email. In which file need to do this?

thanks a lot!!!!

When you add elements to config.php they will automatically appear in the email. If you want to add custom content to the email, the files are emails/email-html.php and emails/email-plain.php

by
by
by
by
by
by