Code

Discussion on Smart Forms

Discussion on Smart Forms

Cart 4,302 sales

elflaire supports this item

Supported

654 comments found.

Hi, one question:

I have this div on my form (Im using Toggles): -

<label class=”switch block switch-purple”> <input type=”checkbox” name=”features1” id=”f1” value=”javascript”> Javascript </label> <label class=”switch block” switch-purple> <input type=”checkbox” name=”features2” id=”f2” value=”downloads”> Downloads </label> <label class=”switch block switch-purple”> <input type=”checkbox” name=”features3” id=”f3” value=”cookies”> Cookies </label> <label class=”switch block switch-purple”> <input type=”checkbox” name=”features4” id=”f4” value=”popups” checked> Popups </label> <!- end .colm section ->

How can i put those inputs on the confirmation email? I read the documentation but i coud not find instructions, please help.

Regards, Daniel

Hi Danel,

1 – HTML CHANGES

You will have to make some adjustments to your code you posted – please notice that those are checkboxes and with checkboxes you need to change the name attributes on the checkbox instead of having name=”features1” change it to name=”features[]” – the correct markup should look like this below

<label class="switch block switch-purple">
    <input type="checkbox" name="features[]" id="f1" value="javascript">
    <span class="switch-label" data-on="ON" data-off="OFF" />
    <span> Javascript </span>
</label>

<label class="switch block switch-purple">
    <input type="checkbox" name="features[]" id="f2" value="downloads">
    <span class="switch-label" data-on="ON" data-off="OFF" />
    <span> Downloads </span>
</label>

<label class="switch block switch-purple">
    <input type="checkbox" name="features[]" id="f3" value="cookies">
    <span class="switch-label" data-on="ON" data-off="OFF" />
    <span> Cookies  </span>
</label>

<label class="switch block switch-purple">
    <input type="checkbox" name="features[]" id="f4" value="popups">
    <span class="switch-label" data-on="ON" data-off="OFF" />
    <span> Popups </span>
</label>

2 – PHP CHANGES (All files located inside the php folder of your form)

A – INSIDE smartprocess.php PUT THIS CODE BELOW – Remember to put it where below this comment: Register all form field variables here

$features = $_POST["features"];
if ($features[0]!=""){
    $features_list = implode( '<br />', $features);
}

B – OPEN THE TEMPLATES FOLDER AND LOCATE – smartmessage.php You will find a list of variables for other form fields just add this line below

<p><span style="font-weight:bold;font-size:16px">Features :</span> <br />'.$features_list.'</p>

That should solve your issue

Regards

Elia

Please copy the code as is it should work you can use a code editor like dreamweaver or sublime text or notepad ++ to evaludate the code but it should be OK

Dear Author,

After the File submitted, where the files store ? any admin panel ?

thnaks

So this is only form interface without any database and admin panel ? right ?

Yes in a way! Its a form interface form components that can help you quickly build forms. However i added the ability to quickly build a form and send form data using AJAX and PHP Mailer.

However i also added some settings where you can store all your form data in a CSV file. I use this CSV file to interface and display data using the dataTables plugin. So in some sense that acts as a back-end where you can view all the data submitted in tabular format. You can search and export it in different formats

So the CSV acts as a DATA Base but as you know it has limitations

Hello friend. I have this issue for Dropzone template.

Invalid argument supplied for foreach() in /home/dropzone/php/smartprocess.php on line 51

PHP Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /home/php/phpmailer/PHPMailerAutoload.php on line 45.

Please how to fix this issue?

send me an email on my profile page i will help you fix the issue – it has something to do with your version of PHP

Thank you I have fix php version

Hi! I’m having issues on developing a local form (via XAMPP). I sent you my query via Support but didn’t get any response. Would you let me know where to contact you with my issue?

Sent you an email

Can I redirect to another site if a certain condition is answered?

Hi Alex Yes, you can if you set that condition either through php or javascript

disapointed…waiting for authors answer 2-3weeks…

We use these Smart Forms in college. This helps to structure information correctly, because we have a lot of paperwork. I even have to go to this page to write my speech. This helps to save at least a little time. I am very tired, but this service provides an opportunity to relax with my family.

any update error: PHP Deprecated: __autoload, PHPMailerAutoload.php on line 45

Alright send me your FTP details alternatively use composer to generate phpmailer with a newer version of autoload

You can run

composer require phpmailer/phpmailer

PHP mailer also supports direct php includes without autoload

If you cant do this send me your FTP details i will assist you

Thank you! Please check your email

Yes received let me fix it

Hello,

I know that I’m out of support period, but is it possible to tell me how I can use the red.css? I’ve loaded smart-themes/red.css and I added theme-red in class=”smart-forms theme-red”, but nothing good happen.

Thank you
Chris

No problem Chris

I renewed my license for support but I appreciate that you supported me without having it active. Professional reaction. Once again thank you.

Thanks Chris appreciate the gesture

2 weeks ago I ask via support for help. nothing happen. After this, I ask for refund. nothing happen. poor

Any progress on it?

Sending you files tonight am almost done

Hello i have attached the form everything configured as you want it

Couldn’t email the files via gmail as it wont allow me to attach js and php scripts but i have sent you a link to the working demo and a download link from my server

Thanks

How to use admin function, create login and password.

explain it to me in my email please. playoutbr@gmail.com

Alright please remove your email address from the comments if you can edit your comment above… I have your email address let me send you the details

I can not edit the comment I hope the answer in the email.

Hi there, been using your smartforms with Google reCaptcha V2 for a while with no issues or errors. Just recently I started noticing the following warning in the browser console:

”...A cookie associated with a cross-site resource at http://google.com/ was set without the `SameSite` attribute….”

I think this error is related to Google reCaptcha API call on the page containing your smartform. When you remove Google reCaptcha from the form the issue goes away.

Any idea how to fix this issue? Any help would be appreciated,

Many Thanks :-)

Thats great :-) Expected completion date?

Am looking at 2-3 weeks, to include most of the client suggestions as much as possible

Great news :-)

I have need for setting a processing animation – form submits to another page, but intense php scripting creates a long wait time before the page transitions. I want a gears gif to show once the submit button is pressed and no validation errors. I tried simple javascript change visibility but it clashes of course with your validate and the show/ hide that I’m using. How can I achieve this?

Hello Savvyone you can always add a processing custom animation using JS – am not sure how your submit handler looks like but you need to put the animation in your form submit handler

If you need help please send me an email i will be glad to help

Thanks

Completed forms are are going straight to gmail spam folder, with a response of Why is this message in spam? Gmail could not verify that it actually came from seanmcgehee@gmail.com. Avoid clicking links, downloading attachments, or replying with personal informtion.

Inmotion is my webhost. I read in the comments where another purchaser was having the same issue. You gave him the following

7 – SPF records for your server are misconfigured/not configured at all

8 – Domain keys are misconfigured/not configured at all inside smartmessage.php file

1 – Add reply to address $mail->AddReplyTo( “mailer@blah.com”);

2 – Add setFrom address – usually an email address related to your domain $mail->setFrom(“mailer@blah.com”);

3 – Check your email headers for the email you received as spam

A. Where in the smartmessage.php shoud I add 1 and 2

B. How do I configure domain keys inside smartmessage.php file

The header looks normal

from seanmcgehee@gmail.com

to mobilewebguy@gmail.com

date

Standard encryption tls

Please help me

Hi Elfaire, Thanks for the quick response. Yes Inmotion hosting supports smtp.

Here are the details:

Secure SSL/TLS Settings (Recommended) Username: sales@seanmcgehee.com Password: Use the email account’s password. Incoming Server: mail.seanmcgehee.com IMAP Port: 993 POP3 Port: 995 Outgoing Server: mail.seanmcgehee.com SMTP Port: 465

Use those details with port 465

You can test with both SSL or TLS to see which one works for you

I am looking for conditions for a form. For example, I create a form for an employer. Question 11 asks him to check which software that they use… Later on in another section, question 35 asks “If you selected Adobe Photoshop in question 2, you need to answer the following questions” and make it mandatory for those 5 questions. Can these be done?

I have problem with form validation based on data-atribute. I created form with 3 steps, where someone can choose using radio button field which way he want to proceed. Based on that choice form will show user fields from group A or group B. Of course i’m using for that example from show and hide :) And i have problem because in both groups i have fields which are required. When i’m trying to sent form with filled fields from group A i can’t because fields from hidden group B are still required :( How can i fix this?

You can disable validation for hidden fields

Here are the options

If you want to validate “hidden” fields (hidden by your collapsed panels) but not validate other hidden fields, then you simply need to set the ignore option to something much more specific.

Add a new class called .ignore to your hidden field(s). Then set the ignore option to ”.ignore”. Of course you can use any class or jQuery selector you wish.

Example 1

$("#myform").validate({
    ignore: ".ignore" 
});

Example 2

Set ignore generally on all fields

$("#myForm").validate({ 
    ignore: ':hidden'
});

I’m afraid that it doesn’t work in my case.. Did you test this solution with form with three steps? http://doptiq.com/smartforms/v4/demos/working/elegant/multi-steps/

Send mean a link to your form via email

I’m needing to build a form using only HTML5 and CSS3, not any of the PHP features, including a slide selector, a calendar, and a couple of drop down fields – is this possible?

Thanks!

What is a slide selector? the rest is possible and all plugins are included

Thanks

Oh you mean Range sliders :-)? That’s possible as well by the way PHP is just added for demonstration but the forms are meant to be used without PHP so that you can use your own proffered language

Hi ! Does it support Shopify ? Any installation help on that?

Hello! Absolutly fantastic Script :) I like it a lot! I just got one question :

The Dropzone Script was not sending me the attachments in the recieved mails. I was trying a lot, also with the smtp version. No Chance.

So now iam using this one :

AJAX PHP\Sendmail version\order

Its working without problems, also iam getting the attachments.

I would like to have a option that i can select multiple files withhin the Upload Form. Is that possible?

Thanks

did you get my mail?

Hello do you have any update??

Yes am going to send it to you by email

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey