Code

Discussion on Smart Forms

Discussion on Smart Forms

Cart 4,302 sales

elflaire supports this item

Supported

654 comments found.

I want to embed a form inside a website server which can’t handle PHP. Is it possible to put form processing on another server which can handle PHP, without leaving the frontend user leaving the website?

The form uses AJAX and am not sure if that will work due to cross domain issues and AJAX maybe if you embed the form via an iFrame

does it work with bootstrap 4?

Will test it and let you know

does it work with bootstrap 4?

How can I combine your login page and regular form in the same page? I would like to have in the header section a dropdown with the login fields.

You mean you want to put the login fields on the same page as the form?

Yes, the login fields to the csv admin page in the header section.

copy the login index.php file html and make sure the link to the login form is the right path remember the login has sessions so your entire page has to start with the php session on top

We’re getting loads of spam 5-10 a day, even with the captcha setup. I’ve changed the smartprocess file name to see if this would fix it. Still no luck. Any ideas?

Sorry about that

I guess there is no real fix for it then.

Can you forward me some of the spam mail you are receiving why are your emails going to spam? We are communicating mail to mail and emails are going to spam – that is weird. And also the email you are receiving the span on – just share it as well?

I have SMS api msg91

Do you have their PHP implementation i can test?

Dear sir, how to possibly SMS notification both customer and admin

There is no SMS integration in the form but you can integrate it with available APIs such as TextMagic they have a good php API that is easy to integrate

Please note that it will cost you to use their SMS API integration to send SMS

Thanks for an awesome product, but how do I make the telephone number received thru the smart message a clickable link like the email address. I tried adding the

You can use something like this below inside smartmessage.php

<p>
    <a href="tel:'.$telephone.'">
        <span>Telephone:</span> '.$telephone.'
    </a>
</p>

Please notice that $telephone is your variable for the telephone field and its included twice in that code both surrounded by single quotes and dots

Hellooo elflaire, I need to know what default credential is required to connect to the admin folder? http://prntscr.com/l3wqk0

Hello Genetiik

You can use either of these two credentials

Username: elflaire

Password: smart-forms

OR

Username: Envato

Password: codecanyon.net

Check the documentation on how to setup yours

Microsoft is flagging all messages from this form as spam. Is there a way to have them all look like they’re sent from the same email address?

You did not specify which microsoft client you are facing this issue is it Outlook? Most issues like these are usually related to your server so you may have to observe your server activity

Here is a list of possible causes

1 – You’re sending spam

2 – Your IP, or a block of IPs surrounding your IP has been marked as a spam source on one or more blackhole lists

3 – The content of the email is triggering spam filters

4 – The recipient has added you to their blacklist

5 – The recipient didn’t add you to their whitelist

6 – You’re sending a mixed source mail (“setFrom: xyz@example.com”, but sending it from “someotherdomain.net”)

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

8 – Domain keys are misconfigured/not configured at all

Possible solutions – 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

Hey. I’ve sent numerous messages on the comments page. I can’t get the multi-select checkboxes to work. I’ve added the “[]” to my input name but I don’t know where to put the script—<script>

// age groups multi select
    $age = $_POST["age"];
if ($age[0]!=""){
    $age_list = implode( ',', $age);
}

</script>

I’ve tried to put it in the header, bottom of the index file, the smart-forms.js file, the smartprocess.php file… and nothing works. I won’t send the multiple values to the csv file in an array. What am I doing wrong??

Thanx

That is PHP – PHP goes into the smartmessage file see the example review form inside the AJAX PHP folder you will find how all the instructions fit together

So tired of the lack of support for this form… Somebody please email me at bobby.r.bowden@klazzy.com to show me how to get the multi-select checkboxes working PLEASE! I will pay you!! - I’ve set everything up and I have the “[]” as part of my “input name” but I don’t know where to add the script -—$age = $_POST[“age”]; if ($age0!=”“){ $age_list = implode( ’,’, $age); }

The instructions are clear and in which file they should go its pretty straight forward you don’t need to pay to get this to work

how to get all value from select <select class=”example-tags smart-select2” multiple=”multiple”> <option selected=”selected” value=”1”>Arua</option> <option value=”2”>Amuria</option> <option selected=”selected” value=”3”>Bukedia</option> <option value=”4”>Bushenyi</option> </select>

I get just first selected value Arua

I Solve It thanks

Thanks

Hello! first of all, this is probably the most useful and practical code part on Codecanyon. Second of all I have a question. How can i make this “message to different department”. I would like to place a select with two options and depending on picked one the email should change. How can I achieve it? Cheers

Thank you for the kind words. I included a practical example of this in the PHP templates / with email selected department for it to work

1 – HTML

In the HTML include your select with the list of options to choose with corresponding values for example consider the select below


    <select name="department" id="department">
        <option value="">Email to department</option>
        <option value="HR">Human Resource</option>
        <option value="PR">Public Relations</option>
    </select>

2 – PHP

In PHP you will have to write your code giving each SELECT OPTION above a corresponding EMAIL value in an ARRAY – But you will have also to set a default email address just in case NO OPTION is selected that is in case your SELECT is optional (optional in this sense you dont force people to select values via validation)

Inside settings.php set the default email like this

$receiver_email = "example@domain.com";

Inside the smartprocess.php file

1 – Capture the option values

$department = strip_tags(trim($_POST["department"]));

2 – Set the email array with corresponding option values


    $receiver_email_array = array( 
        'HR' => 'hr@example.com',
        'PR' => 'pr@example.com'
    );

3 – the set that array to equal the default email value you set so that in case one selects an option the default email also changes from the general to the one set in the select options array.. ($receiver_email)


    if (isset($receiver_email_array[$_POST['department']])) {
       $receiver_email = $receiver_email_array[$_POST['department']];
    }

4 – Set the receiver email

$mail->addAddress($receiver_email, $receiver_name);

All these steps are included in that template of email-selected-department

HELLLLOOOOOOOO?? I’ve been trying to get this multi checkbox values to show up in the database for quite some time now. It’s extremely vague in the documentation…

I’ve run a search for “AJAX” in all the folders that I downloaded for this form and no folders or files are showing up in the search for the name AJAX.

Got it to work. I had to download everything again and I looked at the “Review” sample. It showed where to place the script as well as an additional line to place the array into the CSV file.

Your documentation was a little vague… So once I code the <input type=”checkbox” name=”mycheckbox[]” value=”myvalue”>, and I have the “[]” after each value, what is the COMPLETE code that I use to send the checked values to the database, and what file do I add that code to?

Hi, apparently steps and cloneya do not work together. Is there any way to make it work?

I’ve actually read one of your oldest replies and I’ve got it fixed. But now I have another issue… How can I possibly validate cloned fields? I’ve checked the comments and I didn’t find anything.

Basically I have let’s say two fields (first name and last name) and I would like the first name to be validated. If I add any number of rows, only the first pair gets validated, the rest of them just remain like this

Cheers, Andy

Hi Andy am working on a fix for cloned elements with validation will notify you once its done

Hello I have checkbox like :

<input type="checkbox" name="navigation[]" value="1"> <input type="checkbox" name="navigation[]" value="2"> <input type="checkbox" name="navigation[]" value="3">

I put this code in smart-form.js but not working ? look :

this.on("sending", function(file, xhr, formData) { formData.append("navigation", jQuery("#navigation").val()); ..... swapButton(); });

what should I change ? Thanks

presales question… after form submission, is the data sent via email , or it is stored in the database? i would like the data sent via email in the project i am doing, with an option to send to db in future

Yes i will

Hello sir, Has there been an update on this feature?

Hello sir, i am just following up on this feature. Also, a suggestion… It will be good if you design a donation form with an intergration to stripe or paypal… Thanks

Really eager and patient to get this script

Hello,

Does the plugin allow the user to choose a role when filling out a form?

(technical translation)

Hello Isaakov, this is not a WordPress plugin

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