654 comments found.
Toggle Switch Question. I have a form with only one toggle switch. I want to toggle the switch on, and also be able to toggle it off again. It does not allow me to do this. If I toggle it to the ON position it get stuck there, and does not allow me to toggle it off again.
We are providing customization of the project so for any kind of customization please contact us. Whatsapp : +91-8866181024. Let’s have a short talk and discuss about your requirements. GFuture Tech Pvt. Ltd. Mo: +91 8866181024 Email : info@gfuturetech.com
Hello,
Do you plan to update to make it compatible with fontawesome 5 or 6?
Thanks, Mick
Hi Mick my intention is to remove included fontawesome and use a CDN Version – that way you can always run your own versions instead of having to rely on old versions
Great ! Thanks again !
The Geo Location widget – What information does it return. I would like it to retrieve latitude and longitude information when I need to create a map of form responses. Thank you.
It does
It does
Hello,
Could you please tell me, if Smart Forms:
- Can work without Bootstrap
- The grid system can work out of a form
Chris
Yes to both Chris
Unfortunately button pushed btn-primary seems that does not works outside of a form.
Could be a CSS conflict pliz share your code via mail my email server is working now
Has anybody been able to get form submission to an email address to work using smart forms in squarespace?
I’m not sure I’m able to add php code to squarespace.
Hi richevansuk let me look at your issue tonight
Hello could you answer my email?
Sent you an email
Hello, you can check my email again
thank you!
OK
I need your help!
Sorry my mails server has been down of late fixing it and get back tonight
Can you help me to find or provide me a list of available “Validations” so that I know what options I can use to validate my forms.
Hello khalilpoint
The form uses jQuery Validation Plugin so all options are available
1 – List of built-in Validation methods – https://jqueryvalidation.org/documentation/
2 – Using the jQuery Validate Plugin with HTML5 Data Attribute Rules
https://johnnycode.com/2014/03/27/using-jquery-validate-plugin-html5-data-attribute-rules/Thanks
Hi, is this form builder supports workflow? e.g. after submission i’ll receive email to approve or reject the request? .etc ?
No
Hi,
I saw your old post ( 2 years ago) and I am wondering if you have managed to make the update where pdfs are generated in addition to the generate csv?
beachi
Hi beachi i finalized that option am working on a few remaining updates for PHP 7 should release them once
Let me know when you will release it. Hopefully it doesn’t take another two years.
Can I combine this with bootstrap?
Yes
Hello. I’m starting to use my smart forms and would like to know how to make them respect my UTF-8 settings… My PHP pages are OK, but as soon as the form items are concerned (labels, select menus…), it doesn’t take them into account and I can’t get the accented letters such é è à ç, etc.
You may change the font for the forms to the one that supports special characters it could be the one causing that issue.
You can change that in the smartform.css file
Not a problem with the font since these characters are OK if I type the HTML correspondance… ie & e a c u t e ; for é… then the é appears. But it can’t be done like that when I’m taking data from MySQL… It is a problem of charset with the javascript components, but since I don’t speak javascript, I don’t know where I can set it correctly as UTF-8.
Could be caused by a couple of issues
IN HTML
Adding UTF-8 encoding to th form tag to accept characters
<form action="" method="post" accept-charset="utf-8" >
IN PHP
Setting it via header
header("Content-Type: text/html;charset=UTF-8");
Alternatively the issue could be with your tables, You need to set your database and table to be in UTF-8 encoding.
ALTER DATABASE databasename CHARACTER SET utf8 COLLATE utf8_unicode_ci;
ALTER TABLE tablename CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci;
Also running this code directly after connecting to your database.
mysql_set_charset("utf8");
If you ar using PDO
$dbh->exec('SET CHARACTER SET utf8');
My SmartForms Dashboard it has no buttons COPY CSV EXCEL PDF PRINT
Can you share a link via DM
Admin user e pass di default elflaire Envato but Invalid username or password
RESOLVED
I’m trying to add an Accept Term checkbox to my smart-form, but it doesn’t validate!
On my form i have:
<div class="section">
<label for="terms" class="field option option-black">
<input type="checkbox" name="terms" id="terms" value="Yes">
<span class="checkbox" />
Accept Terms <em class="small-text fine-grey">This is my terms</em>
</label>
</div><!-- end section -->
In smart-form.js i have for rules:
terms: { required: true }
And for message :
terms: {required: 'Accept Terms'}
In smartprocess.php i have:
$terms = strip_tags(trim($_POST["terms"]));
and
if(isset($_POST["terms"])){
if (!$terms) {
$errors[] = "Accept Terms";
}
}
All my fields validate except the checkbox, so im surely missing something but what?
HTML
The checkbox should look something like the (of course i didnt post the checkbox wrapper tags just keep them as they are )
<input type="checkbox" name="terms" id="terms">
PHP
You could do something like this for setting up the checkbox for posting
if(isset($_POST['terms'])) {
$terms = "YES";
} else {
$terms = "NO";
}
On validation – Check whether its checked or not – just something like this
if(isset($_POST["terms"])){
if ($terms =="No") {
$errors[] = "Accept Terms";
}
}
Let me know whether this solves the problem – Ty
Sadly it didn’t help! The checkbox is not validated and the form is submitted. Is there anything i should add to the smart-form.js file?
It should work, I need to look at your form do you have a link? Send me a DM with the form on on my profile page
I got it to work mostly now. I’ve changed the markup From:
<div class="section">
<label for="terms" class="field option option-black">
<input type="checkbox" name="terms" id="terms" value="Yes">
<span class="checkbox" />
Accept Terms <em class="small-text fine-grey">This is my terms</em>
</label>
</div>
To:
<div class="section">
<label for="terms" class="field option option-black">
<input type="checkbox" name="terms" id="terms">
<span class="checkbox" />
Accept Terms <em style="color:#e74c3c">* </em>
</label>
<span class="small-text block spacer-t10 fine-grey">This is my terms.</span>
</div>
In smart-form.js i have for rules:
terms: { required: true }
And for message :
terms: {required: 'Accept Terms'}
And for smartprocess.php i have what elflaire suggested!
Now the checkbox gets validated and form does not submit if terms is not checked. Only problem now is the message are not displayed – But the checkbox is marked red!
Like i said i may need to look at your markup, looks like you are doing it the wrong way
Just copy this markup format and paste / replace the one in your HTML – don’t edit yours it may have some errors
PS – COPY AS IS
THE CODE
<div class="section">
<div class="option-group field">
<label for="terms" class="option option-black block">
<input type="checkbox" name="terms" id="terms">
<span class="checkbox" />
Accept Terms <em style="color:#e74c3c">* </em>
</label>
<span class="small-text block spacer-t10 fine-grey"> This is my terms </span>
</div>
</div>
You may consider removing the span for the grey small-text
Thanks! It works perfect now!
Is there a way to do validation using HTML5 attributes for radio buttons?
Hello Maxxnas can you please clarify more?
Having some issues. Working on a website that has 12 different forms. I would like to keep each form in its own folder. Creating the forms is relatively simple and I initially tested with no issue (index.php located within the folder). Once I inserted the coding into my html page and pointed the scripts to the proper folder it no longer works and the captcha refresh breaks . If I break out your PHP folder into my main site everything works again. I don’t want this however. I want to keep all processing in one folder. I’m sure this is a simple fix but I’m not sure how.
Additional Notes… In my HTML page
<form method=”post” action=”my_folder/php/smartprocess.php” id=”smart-form”>
In the smartprocess.php…
include dirname(FILE).’my_folder/settings/settings.php’; include dirname(FILE).’my_folder/functions/emailValidation.php’;
include dirname(FILE).’my_folder/phpmailer/PHPMailerAutoload.php’; include dirname(FILE).’my_folder/templates/smartmessage.php’;
What am I missing that causes the form not to work?
I haven’t heard back from you but I figured out the above problem. The next issue comes in your processing. When I submit my form I call for a re-direct to another html page. This process can take over 6 seconds. That’s really unacceptable in today’s modern websites. Every redirect I have done in the past was instant. What’s causing this redirect to take so long?
Sent you an email regarding the first issues
As for the redirect Its set in smartprocessing.php file close to bottom with an if statement
Look for this
{ window.location.replace("'.$redirectForm_url.'") }, 8000)
Change the 8000 value to something like 10
Thank you!
Hi,
is there a way to clone chained fields?
Andi
Hi Andi Chained elements are tricky let me try some examples for you
super
Can mutistep be saved and continue later?
Hello, we are trying to go paperless and want to see if this is the correct product. Currently we have a 12 page pdf that we print and then file when returned. I want to take that same 12 pages into a form but using same page inputs questions,logo,ect. Will I be able to accomplish that with this script. Also, can they upload files, make a deposit, and save progress? thanks
Currently i believe not. You may need to do some bit of extra programming to achieve that – the forms currently support basic setups