Code

Discussion on Smart Forms

Discussion on Smart Forms

Cart 4,302 sales

elflaire supports this item

Supported

654 comments found.

I have a silly pre-sales question: Is there a way to display all the information to the user for a check before or after he submits it?

Thanks.

Hi item098I

Thats a valid question – the current implementation doesnt have this but you can make an AJAX request before submit to see all the filled data

Thanks

Thanks mate. I ended up creating a form myself as I wasn’t sure about this and client was in a a bit of rush but will check it out in the future. Seems like a great form extension.

OK Thanks for the interest

Regards

Hello, I followed your instructions and got the forms working inside wordpress. I’m however not able to get the ‘star ratings’ show. I’m not sure why?

You mentioned that the JS and CSS filed need to be combined. So should I simply copy the contents all JS files one after the other into one master JS file and copy all CSS files into one mast CSS file; and then include these files in WordPress?

- You can hook your button into the existing code

- Your CSS will loo like this below

- Please dont use the hidden class on the ajax loader

THE CSS
.ajax_loader{ 
    display:inline-block; 
    padding-top: 2px;  
}

.smart-forms .button .ajax_loader{ 
    opacity:0;
    visibility:hidden;
    -webkit-transition:all 0.5s ease-in-out;
    -moz-transition:all 0.5s ease-in-out;
    -ms-transition:all 0.5s ease-in-out;
    -o-transition:all 0.5s ease-in-out;
    transition:all 0.5s ease-in-out;    
}

.smart-forms .progress .button .ajax_loader{
    opacity:1;
    visibility: visible;
}

THE JAVASCRIPT

- I guess you already have an ajax submit hanlder with these settings below – these are the ones that make the spinner work accordingly

– Do not add this part unlesss you dont have it already but my guess is that you have it setup in your current form – i gave it to show you what makess the spinner work

$(form).ajaxSubmit({
    target:'.result',               
    beforeSubmit:function(){
        $('.form-footer').addClass('progress');
    },
    error:function(){
        $('.form-footer').removeClass('progress');
    },
    success:function(){
        $('.form-footer').removeClass('progress');
    }
});

What is happening here is that the ajax loader is hidden by default – but when the button is clicked – a progress class is added to the footer which shows the loader but the loader will be hidden again when there is an error and when the form is successfully submitted

Thanks

Okay, I might be dumb; but I’m not sure where exactly to put that ajax part, in my javascript file.

[code] (function ($) {

/* SHOULD I PUT IT HERE? /

$( ”#smart-form” ).validate({

/ OR HERE? */

errorClass: ....

The instructions i sent you i told you that that part is already in your form if you are using ajax to submit your form you do not have to put it

Can you share a link or files on my profile email

Thanks

Found a Bug on widget-multisteps… If you have validate fields in the last Step and get the error messages after press Submit button and then “Go back” in button it Stucks.. Can you help me? i send you a email with more details. Thanks

OK let me take a look

I sent you an email for support and still waiting for your response. I implemented the booking type form into my website after I customized it but I have three issues with it ’s functionality as follow: 1. The submission button does seem to fire up and eventually there is no csv file created. 2.No redirection: Even though I changed the setup variable in the php file to redirect user after submitting the form to the main page. 3. As embed form within my site, the form page loading time is very slow.

Thank you.

Hi abusundos

My apologies for the late feedback i have been away from office

Let me get back to you tonight regarding your email

Thanks

Elia, I sent you the form files on Monday please check your email.

I am working on it

Thanks

Hi, in my form I have “Industry” select field. Unlike other fields, we are not using placeholder to display the field label in smartform framework. The problem is, the rest of the fields have consistent padding left for placeholder labels but only Industry select field is NOT using placeholder for the label name and “Industry” has different padding left depending on the browser ie) Firefox has bigger left padding than Chrome cause Firefox has default padding around the select field.

Please see the example in Firefox and Chrome to see the problem: https://www.absolute.com/en/landing/test/test-leadgen-template

Is there a way to resolve this inconsistency between browsers?

Updates in Firefox seem to be adding such issues – i suggest the following

You can use browser specific styles to normalize this issue

In case of Firefox you can use this and adjust padding

@-moz-document url-prefix() {  }

OR for Chrome you can use this and adjust padding

@media screen and (-webkit-min-device-pixel-ratio:0) { }

You can use one of the above to adjust it to match the other

Perfect! thanks for help. It works now!

Hi Elflaire,

I’ve just sent you an email and waiting for your response.

Thanks. Ahsan

Hi Ahsan

My apologies for the late feedback i have been away from office

Let me get back to you tonight regarding your email

Thanks

Hi Elia,

It is more than 20 days since I am waiting for your response. Please check your email.

Thanks.

Ahsan

Hi Ahsan

Thats strange i sent you some feedback some days ago – let me check again

Hi,

First of all again, I like your code!

But I do find it disturbing, that people who use the normal way of getting support by clicking on the the support tab, don’t get helped. But people who post a comment, DO get helped…

Could you please help me with my issues for which I contacted you via the support tab?

Thank you. Best regards.

I just checked again, I haven’t received an email from you. I see I am the one who has sent you the last 2 emails. So maybe something went wrong when sending your email…

Hi, the issue that was caused by the 2 steps is fixed. Could you please give me support for the last 2 issues please? I have been asking for help for 3 months now…

I seems this was a miscommunication, everything working fine now :)

I built a multistep form (everything is working fine). In step 3 within this form I have to open a modal popup. But the modal popup is not displayed. When I copy the line “xxx” direct after the body tag, the popup is displayed. Within the <fieldset> the popup is not displayed.

Please help! :)

Make sure you load the modal plugin after the multistep plugin and see if it works – i think the problem has something to do with executing JS inside the steps plugin

thank you :) this solved my problem!

Glad it did

Hi, I’m trying to use a checkbox for terms & conditions label using mvc. I have 2 input boxes; one is hidden:

<label class=”field option block”> <input type=”checkbox” value=”true” name=”Subscribed” id=”Subscribed”> <input type=”hidden” value=”false” name=”Subscribed”> You must agree to our terms of service </label>

Now I see two checkboxes and the when I select the smartform checkbox one, it seems like JS is not called to display the smartform big check mark ie) http://doptiq.com/smart-forms/demos/samples/elegant/ui.html

Can you please help me how I can fix this issue with two input fields for the checkboxes?

OK let me review it

Hi, I’m just wondering if you had a chance to look into the issue I’m having… Please let me know. Thanks.

Hello i did test it out

You have to change the order of your checkboxes – load the hidden checkbox first followed the normal checkbox

I mean insted of THIS

<input id="Subscribed" name="Subscribed" type="checkbox" value="true">
<input name="Subscribed" type="hidden" value="false">

Do THIS

<input name="Subscribed" type="hidden" value="false">
<input id="Subscribed" name="Subscribed" type="checkbox" value="true">

OH and make sure the the checkboxes are followed by an emapty span like this

<input name="Subscribed" type="hidden" value="false">
<input id="Subscribed" name="Subscribed" type="checkbox" value="true">
<span class="checkbox" />

The code will work as normal – thats all

How can I select one of input (radio)fields with JS? I tried $(’#inputid’).attr(‘checked’,true); but that doesn’t work.

Hello

If you are using jQuery version 1.9 or higher – attr wont work instead use prop

$("#inputid").prop("checked", true);

It helpful to add .change() to the end to trigger any other events on the page

Great, this works now. :) Thank you. Awesome script.

Hi, I am interested in buying your script but I have few questions.

I have to make a form that can do simple arithmetic operations(+ – * /) with numeric inputs and can output results. So here are my questions.

1. Can I do it using your forms?

2. Is there a GUI to make such forms or I will have to edit and place code manually?

3. Put simply, Can I make these forms including arithmetic operations directly from front end.

Please guide me.

Thanks

HI Fahad

Actually the forms do not have a GUI for doing this so most of the things including calculations are done manually

Good night, my forms are having spambot attacks, how is this possible if they have captcha?

see image, the ones in blue are spam …. http://www.rumadesign.com.br/form2.jpg You can check the http://www.pontocomfloripa.com.br/orcamentos?onde=pc form-gamer-work-4

We start by creating a function to get the visitor’s IP.

function getUserIP(){
    if (!empty($_SERVER['HTTP_CLIENT_IP'])){
        $ip=$_SERVER['HTTP_CLIENT_IP'];
    }
    elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){
        $ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
    } else {
        $ip=$_SERVER['REMOTE_ADDR'];
    }
    return $ip;
}

Then we call the user IP

$visitorIp = getUserIP();

Next we create an array of IPs to blacklist

$denied_ips = array("111.111.111", "222.222.222");

Next lets check if the IP listed among the blacklisted ones

$status = array_search($visitorIp, $denied_ips);

If the IP is listed among the blacklisted ones we redirect the user and terminate the connection

if($status !== false){
    echo '<div class="error">IP banned! Stop spamming us!</div>';
    header("Location: http://google.com");
    exit; 
}

Hope this gets you started

Alternatively you can use HTACCESS to black list the IPs once you know them

tanks…

Any time

Hello, I got a question
How to redirect to the page when you send a from ??
thx a lot!

Hi mr-frontflip,

Are you using the latest version? It has a settings file where you set the redirect to TRUE and then set your redirect URL below that option – it should be very easy

Yes the last version, Thx a lot
Cheers

How do I place a calendar to accept only dates from the 18 years ago?

Yes the multiple email feature cannot receive a response email because the auto responder is an email addressed to the one who sent the form so unless you have multiple email addresses you cannot set an email to receive an auto response message

OK, so for multiple addresses cannot activate the automatic response. correct?

Cannot resolve this problem?

Yes they worn’t – they just activate sending the same message to multiple addresses not the auto response!

Its useful for situations where you need to add more than one addresses!

Were you able to resolve the issue when cloning more than 3 file uploads? After the third file upload is cloned, when you try and upload, it replaces the second clone.

Hi Devin,

I haven’t finalized on this one i am a little caught up somewhere – the simple solution is to creating a JS driven file upload without inline javascript since the cloning plugin cant handle changes to the JS (inline) so i resolved we should switch to a normal file uploader BUT the catch we use wrappers for the JS and style it that way its easy to clone

Hi , whether Keep me logged in switch is functional or just UI . If just UI can you guide me on how to write functionality for that please.

HI Onlycode,

Its not functional – however for PHP you can set a cookie to test for session persistence. A cookie can be set for a given number of days

Can these forms used with a ready admin template? The styles and the responsive of the admin theme and the functionality of your framework.

Yes they can Dinko2. They should integrate well with any templates including Bootrastrap ones

I cant seem to get the csv file to download. It displays the information on the screen rather than downloading it. This happens when I click on the hamburger button on the top left, then the side panel shows up and i click on the option to download the csv file. The options to copy, csv, excel, pdf and print are flash based and most people can not view it. Thats why I would like to use the side panel option to download the CSV. I have bought the extended support. The following link will show you how the data is displayed when I click on download CSV. http://mytnpr.com/survey/csv.jpg

Hi fernandezdesigns,

Please email me your files i rectify them from these ends i will let you know what changes i made

I tried to email you but I can’t attach anything to the support. All I would be sending you is what I downloaded from the site. All I changed was the email address and changed the value to true for CSV. Please let me know how I can send it or if you need FTP access.

Just send a message i will reply and you will see my email – actually i think i can reply to you via my email let me do that now

Hi there, I just had a few questions that I could not seem to find in comments or on the website. Does this form allow the user to put in multiple emails to CC when the form is submitted? How does the form look when it is arrived in email?

Change $result to $address

Ok,

I added this in index

<input type="email" class="gui-input" name="address[]" id="address" placeholder="Enter address">
then in smartprocess.php at the top to register variables
$address = strip_tags(trim($_POST["address"]));
then inside the autoresponder code I added
$auto_addresses = explode(',', $address["address"]);
foreach ($auto_addresses as $address) {
 $automail->AddBCC($address);
}
With that set, I still get no autoresponder for the emails entered in the
<input type="email" class="gui-input" name="address[]" id="address" placeholder="Enter address">

Can i look at this further tonight! Should give you possible tested solutions tomorrow

Hi I just purchased today and am positive I am missing a crucial step of some kind. I have been playing with the HTML instructions provided in the Smart Forms documenter (very cool, by the way!) and cannot seem to produce the results I am expecting. Can you please assist me in troubleshooting?

I am attempting to inject the code into SquareSpace using their widget and the form is not formatting graphically as anticipated.


    <!DOCTYPE html>
    <html lang="en">
     <head>

        <title> Smart Forms - Form Title </title>
        <meta charset="utf-8">

        <!-- Mobile meta -->

        <meta name="viewport" content="width=device-width, initial-scale=1.0">

        <!-- Form styleshets -->

        <link rel="stylesheet" type="text/css"  href="css/smart-forms.css">
        <link rel="stylesheet" type="text/css"  href="css/font-awesome.min.css">

        <!-- Placeholder support in IE9 and below -->

        <!--[if lte IE 9]>
            <script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>    
            <script type="text/javascript" src="js/jquery.placeholder.min.js"></script>
        <![endif]-->

        <!-- IE8 Fallback styling -->

        <!--[if lte IE 8]>
            <link type="text/css" rel="stylesheet" href="css/smart-forms-ie8.css">
        <![endif]-->

</head>

            <div class="smart-wrap">
                <div class="smart-forms wrap-3">

                              <div class="form-header header-primary">
                <h4><i class="fa fa-comments" />Get in touch</h4>
          </div><!-- end .form-header section -->

            <form method="post" action="/" id="contact">
                <div class="form-body">

                    <div class="section">
                        <label for="names" class="field-label">Your Personal Names</label>
                        <label for="names" class="field prepend-icon">
                            <input type="text" name="names" id="names" class="gui-input" placeholder="Enter name...">
                            <span class="field-icon"><i class="fa fa-user" /></span>  
                        </label>
                    </div><!-- end section -->

                    <div class="section">
                        <label for="email" class="field-label">Your Email Address</label>
                        <label for="email" class="field prepend-icon">
                            <input type="email" name="email" id="email" class="gui-input" placeholder="example@domain.com...">
                            <span class="field-icon"><i class="fa fa-envelope" /></span>  
                        </label>
                    </div><!-- end section -->

                    <div class="section">
                        <label for="telephone" class="field-label">Telephone / Mobile </label>
                        <label for="telephone" class="field prepend-icon">
                            <input type="tel" name="telephone" id="telephone" class="gui-input" placeholder="Enter telephone...">
                            <span class="field-icon"><i class="fa fa-phone-square" /></span>  
                        </label>
                    </div><!-- end section -->

                    <div class="section">
                        <label for="comment" class="field-label">Message / Comment </label>
                        <label for="comment" class="field prepend-icon">
                            <textarea class="gui-textarea" id="comment" name="comment"></textarea>
                            <span class="field-icon"><i class="fa fa-comments" /></span>
                            <span class="input-hint"> <strong>Hint:</strong> Please enter between 80 - 300 characters.</span>   
                        </label>
                    </div><!-- end section -->                                                                      

                </div><!-- end .form-body section -->
                <div class="form-footer">
                    <button type="submit" class="button btn-primary">Submit</button>
                </div><!-- end .form-footer section -->
                      <div class="section">
            <label for="names" class="field-label">Icon left + tooltip left</label>
            <label class="field prepend-icon">
                <input type="text" name="names" id="names" class="gui-input" placeholder="Enter name...">
                <b class="tooltip tip-left"><em> Hey buddy! iam a left tooltip. You notice me now huh?</em></b>
                <span class="field-icon"><i class="fa fa-user" /></span>  
            </label>
        </div><!-- end section -->        
              <div class="section">
            <label class="field prepend-icon">
                <input type="text" name="firstname" id="firstname" class="gui-input" placeholder="Text input icon left">
                <span class="field-icon"><i class="fa fa-user" /></span>  
            </label>
        </div><!-- end section -->
            </form>

        </div><!-- end .smart-forms section -->
    </div><!-- end .smart-wrap section -->

https://dl.dropboxusercontent.com/u/165929666/Screen%20Shot%202016-03-04%20at%2010.49.51%20PM.png

Does SquareSpace format the CSS

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