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?
Hi CrazyEngineers,
Thanks for the purchase - Did you include the FontAwesome Icons? - Did you make the markup correctly? Can you share your link
Thanks
Thanks, elflair. Looks like font awesome was the issue. Could you please let me know how to alter the tab sequence (when user hits the tab to move to next field?). I tried using tabindex; but that doesn’t seem to work.
Is there a sample that shows all the available elements in one place? If not, it’d be killer addition. It’s too time consuming to keep opening different files to find right elements.
One more question: When using multi-part forms, for example “widget-multisteps-three-steps-v2.html”, clicking upon ‘Continue’ or ‘Back’ button momentarily expands the form to show the next incoming contents. I’ve created a GIF to show this – http://i65.tinypic.com/qrho2x.gif .
Is there any way to fix this issue, and make the form sliding smooth? If not, I’d like to switch to another transition effect; preferably fading effect.
Yes actually theres a file with all the elements – its called ui elements combined that should get you started with all possible elements
For the Last Question
You can use transitionEffect and transitionEffect
You can see in my example below i have added two of those above mentioned options
$("#smart-form").steps({
headerTag: "h2",
bodyTag: "fieldset",
transitionEffect: "slide",
transitionEffectSpeed:600,
autoFocus: true,
labels: {
finish: "Submit Form",
next: "Continue",
previous: "Go Back",
loading: "Loading..."
}
});
There are 3 transition effect options namely
FADE
This simply fades in and out the step elements
transitionEffect: "fade"
SLIDE
This slides up and down the step elements
transitionEffect: "slide"
SLIDE LEFT
This slides in / out from right to left the step elements
transitionEffect: "slideLeft"
Transition Effect Speed
You can set the effect delay speed you want – the default is 200
transitionEffectSpeed:600
Thanks
Could you please help place a font-awesome spinner, that shows after the user clicks ‘Submit’ button on the form? This is what I’ve done so far: -
<button type=”submit” class=”button btn-primary”> Submit </button> <button type=”reset” class=”button”> Cancel </button>Using this CSS:
.hidden{ display: none !important; } .ajax_loader{ display: inline-block; padding-top: 2px; }
Now – the problem is I don’t know how to make the spinner appear after user clicks ‘Submit’ button.
- 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-templateIs there a way to resolve this inconsistency between browsers?
IT seems that the Form CSS is mixed with some other CSS have you tried looking into that? its causing this problem
You can see padding-left in the dropdown menu is slightly bigger in firefox than chrome so if you compare so if I try to match select dropdown menu padding left to textbox padding left in firefox and style it, then it’s off in chrome and vice versa.
Can you please help me how we can have consistent padding left for all field types in different browsers? As you see, we need to align placeholder label names in both Firefox and Chrome: https://www.absolute.com/en/landing/test/test-leadgen-template
For fields with icons there is a slightly larger padding due to the icon wrapper if you want to increase the padding of all fields please change these values below
.smart-forms .gui-input,
.smart-forms .gui-textarea { padding:10px; }
.smart-forms .select > select {
padding:9px 10px;
}
Hi, I don’t think you understand the issue I’m having. I’m trying to resolve the different padding left issue between two different browsers (Firefox and Chrome) and this is not gonna fix the difference.
If I try setting padding left to be 0, then in Chrome, there is no gap before the label in the select box but in Firefox, there is small 2 or 3 px of gap before the label because in firefox, there seems to be a default padding left that I cannot get rid of. Please try on your sample page and test in both browsers to see what I’m talking about.
Thanks.
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!
Great
Hi Elflaire,
I’ve just sent you an email and waiting for your response.
Thanks. Ahsan
Hi Ahsan just sent you feedback
Regards
Hi Elia,
I am still waiting for your response. Please check your email.
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.
Hi Square design
My apologies on this anomaly i have been having issues with my mail which i am rectifying it hopefully this can be resolved tonight
I am going to get back to you on your issues tonight
Thanks
Hi Elflaire,
No problem, I thought there was something wrong, that is why I posted it here
But I repeat, nice snippits of code, recommend it to all potential buyers.
Thanks for the recomendation
Still issues with your supportmail because I haven’t had any solution for my issues sent to your supportmail…
I need some help with FTP access sent you an email
Could you please help me with the issues I have with sending the form please?
OK
Elia, please help me and check my email…
Let me check
Elia, could you please help me with the last 2 issues? As I stated I have a deadline and I have been waiting for a long time now…
Am working on them actually – i sent you an email
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?
How does your setup work, i mean what do you want to accomplish so that we can start from there – the reason for not displaying the checkmark is that you have two inputs in a single checkbox so it wont register the check way…
Also considering that the checkboxes do not use JS they rely purely on CSS but the order of arrangement matters
Lastly i noticed you do not have an empty span below the checkboxes so that could also be reason for this
Usually a typical checkbox has its markup in this format
<label class="option block">
<input type="checkbox" name="subscribed" value="true">
<span class="checkbox" /> Agree to terms
</label>
The span with a checkbox class is important
Thanks
Sorry for not being clear. We are using .NET MVC for the form and we get two input fields generated for one checkbox. We did some research and this is why MVC is generating two fields for one checkbox: http://forums.asp.net/t/1314753.aspx
This is what we would have and the checkbox doesn’t seem to do anything when I click on it. Maybe we need to update smartform js file to make this work with two input fields for one checkbox?
<label class=”option block”> <input type=”checkbox” value=”true” name=”Subscribed” id=”Subscribed”> <input type=”hidden” value=”false” name=”Subscribed”> Agree to terms </label>
The only challenge is that my checkboxes are not JS driven – but we could inject some markup into the checkboxes so that we get this to work – thats the only way this ca be worked out
Are you able to help me on this? what kind of markup would you inject to fix this? I’m trying to see what I can do next to make my checkbox working with smartform…
What markup does your checkboxes produce? is it the above markup you displayed? Can i add wrappers or other HTML elements around your checkbox markup using MVC?
Hi, This is the markup we have:
<label class=”field option block”> <input type=”checkbox” value=”true” name=”Subscribed” id=”Subscribed”> <input type=”hidden” value=”false” name=”Subscribed”> I agree to receive emails from Absolute containing analyst reports, webinar invitations, and other materials regarding Absolute products and services. </label>You can add html elements around the checkbox or add a wrapper.
What happens when you add a span a checkbox class below the second checkbox just before the agreement text
I mean add this just imediately below the second hidden checkbox
<span class="checkbox" />
My span seems to display oddly but just close it well on your side
I tried it and I see two checkboxes. Left checkbox is from <input type=”checkbox” value=”true” name=”Subscribed” id=”Subscribed”> and right checkbox is from the checkbox span tag. If I select right one, it doesn’t check the right checkbox; it selects the left checkbox instead. seems like we need JS update?
<label class=”field option block”> <input type=”checkbox” value=”true” name=”Subscribed” id=”Subscribed”><input type=”hidden” value=”false” name=”Subscribed”> [ENTER THE HTML SPAN TAG] I agree to receive emails from Absolute containing analyst reports, webinar invitations, and other materials regarding Absolute products and services. </label>I had to put [ENTER THE HTML SPAN TAG] cause every time I submit this support form, it strips out the checkbox span tag you asked me to add.
To see how we wrote html codes for our form, please see this test page:https://www.absolute.com/en/landing/test/test-leadgen-template
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.
Thanks
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-4Hi fotoruma,
CAPTCHAs do not solve human spam and if you are careful enough that seems to be spam from the same person who fills the form and submits it – you can track the IP and black list it
Thanks
but it seems to me that it was a robot. How can I find out the ip? How to put on the blacklist?
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?
My support is expired but you don’t respond to emails that I have sent. My support expired a few days.
Captcha resolved.
Hello Diogo
My apologies in case i haven’t replied your emails
The datepicker can work with the year range option
Lets assume you have an input field with an ID datepicker like this below
<input type="text" id="datepicker" name="datepicker" class="gui-input">
The datepicker yearRange: option should be set like this below
$('#datepicker').datepicker({
prevText: '<i class="fa fa-chevron-left" />',
nextText: '<i class="fa fa-chevron-right" />',
dateFormat: 'yy-mm-dd',
changeYear: true,
yearRange: "-18:+0"
});
It can also be set in a hard coded way like this
yearRange: '1950:2013'
Hello, I have 2 calendar, 1 Date of birth and 1 date drive license. I want the second calendar just introduce the dates if the person has more than 18 years today. You could make a demo for me?
Let me work out a demo for you on this
The last question, why in the last step when fail the captcha and I return one step back, I can’t move forward again?
For example: http://0duvidas.pt/test/simulacao_bicicleta.htmlI think we can allow returning back and block it to the last step will that work for you?
Yes, how do I do that?
Change this part
onStepChanged: function (event, currentIndex, priorIndex){
}
To this
onStepChanged: function (event, currentIndex, priorIndex){
var form = $(this);
return form.valid();
}
Please test in http://0duvidas.pt/test/simulacao_bicicleta.html and see the my video
https://www.youtube.com/watch?v=r-xNZwFPac4
OK let me test it
already tested? can you help me?
Hi Diogo,
Yes i did all you have to do is change this section of code the step changing event (onStepChanging:)
FROM THIS:
onStepChanging: function (event, currentIndex, newIndex){
if (currentIndex > newIndex){return true; }
var form = $(this);
if (currentIndex < newIndex){}
return form.valid();
}
TO THIS:
onStepChanging: function (event, currentIndex, newIndex){
if (currentIndex > newIndex){
return true;
}
}
Thanks
Hello, Not work…
Now stop in first step. http://filipecastro.com/simulacoes/bicicleta/simulacao_bicicleta.html
Please help me I want to put online and can’t for this bug
Sorry i meant change it to this
onStepChanging: function (event, currentIndex, newIndex){
if (currentIndex > newIndex){ return true; }
var form = $(this);
if (currentIndex < newIndex){ return true; }
return form.valid();
}
Yes, perfect. Thanks
Don’t give error when no fill required fields
It does but only at the end of the form – but you cant submit with any errors it will prompt you to go back and you will find the fields highlighted
You can’t be like before? The user in the final step don’t know what you need to fill
What you can do is use the second method of error placement you can find this inside Javascript enhancements > form-validation-error-placement-version2.html
Unable to validate immediately? I wanted to like this.
for example in widget-multisteps-progress.html validations is perfect but in my forms if i add capcha i have a problem ….
The challenge is getting the steps to highlight after telling them to pass as valid but invalidate fields – the problem with the captcha is that it stores its value in session so it is taken as invalid on all steps
Hi Diogo,
What if we modify the function a little bit and disable validation on hidden fields like this
onStepChanging: function (event, currentIndex, newIndex){
if (currentIndex > newIndex){
return true;
}
var form = $(this);
if (currentIndex < newIndex){
$(".body:eq(" + newIndex + ") label.error", form).remove();
$(".body:eq(" + newIndex + ") .error", form).removeClass("error");
}
form.validate().settings.ignore = ":disabled,:hidden";
return form.valid();
}
Hope this works to your needs
Hi Diogo,
What if we modify the function a little bit and disable validation on hidden fields like this
onStepChanging: function (event, currentIndex, newIndex){
if (currentIndex > newIndex){
return true;
}
var form = $(this);
if (currentIndex < newIndex){
$(".body:eq(" + newIndex + ") label.error", form).remove();
$(".body:eq(" + newIndex + ") .error", form).removeClass("error");
}
form.validate().settings.ignore = ":disabled,:hidden";
return form.valid();
}
Hope this works to your needs
Yes, now perfect!
The last problem, when i enable multiple email recepients (2 recepients), the e-mails not send correctely.
$recipients = false; if($recipients == true){ $recipients = array( “MYEMAIL@gmail.com” => “Recipient Name”, “OTHEREMAIL@gmail.com” => “Recipient Name”, );
foreach($recipients as $email => $name){
$mail->AddBCC($email, $name);
}
}
Yes, now perfect!
The last problem, when i enable multiple email recepients (2 recepients), the e-mails not send correctely.
$recipients = false; must be true
Yes, but the response e-mail not send to correct e-mail… $recipients = true; if($recipients == true){ $recipients = array( “FISRTEMAIL@gmail.com” => “Recipient Name”, “SECONDEMAIL@guerreiros.pt” => “Recipient Name”, );
What happens? Does it send or it doesnt at all?
the client not recive response e-mail and the last e-mail in list recive the normal e-mail and response e-mail to client
For a response email you just turn the auto responder option to true
yes, this option is true but the last e-mail the list recive the normal e-mail and the auto responder e-mail. please test form and verify that recive auto responder
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
Did you by any means change the CSV name? You should open the CSV folder and look for the CSV file and update it with your new CSV name that way it should download
To do this – go to the PHP Folder – look for
admin > dataprocess.php and change this line to your CSV file name
../formcsv.csv
admin > index.php and change this line – to your CSV file name
../formcsv.csv?v=v1
That should solve the download problem
I didn’t change the name and after checking those 2 files they have the same name that you mentioned above.
I just installed the files without changing anything except my email and it still doesn’t download it. It still displays the data on the screen. I’ve tried it on different browsers with the same result. Http://ataflorida.com/booking/php/admin
OK let me look over this – not sure whats happening – is it possible to share your ftp – could it caused by folder permissions may be?
What permission should it be?
The admin folder is set to 0755. All the files inside of them are set to 0644. If any of them are incorrect, please advise.
PS thank you very much for all hard work and assistance.
I have installed it on two different hosting companies, with the same result. As I mentioned earlier, the only change I have done is change the email and turned on the csv function. I am using the booking and order examples you provided in the sendmail section.
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?
Hi TheDevinMiller, - Yes multiple emails are supported – inside the documentation it is explained in detail
- When the email arrives its an HTML email – you can use the autoresponder example – just input the correct email address you will see how the sample email looks like
Ok, this is great, but I am not a coding genius like you so I might have a few questions. I set up a clone for email, where do I put this code with the name address[]
$address = $_POST['address'];
foreach($address as $value){
$address_list = implode( '<br />', $address);
}
will that separate emails with a comma?
Open PHP folder and look for smartprocess.php
Look for lines that look like this below
$emailaddress = strip_tags(trim($_POST["emailaddress"]));
Add your lines – i mean these
$address = $_POST['address'];
foreach($address as $value){
$address_list = implode( '<br />', $address);
}
Next open the templates folder and look for smartmessage.php
Inside look for lines like this
<p><span>Email:</span> '.$emailaddress.'</p>
Then add your like this
<p><span>Email:</span><br />'.$address_list.'</p>
Thats it really
Whoops I think I found it, but now when I submit emails, the autoresponder is not sending to the emails in address. I have autoresponder on, and added ”$address_list” to the add address line of code.
Ok, let me try to explain this properly
I have two fields
<input type="email" name="emailaddress" id="emailaddress" class="gui-input" placeholder="Producer's Email">
and
<input type="email" class="gui-input" name="address[]" id="address" placeholder="Enter address">
In smart process,
$address = strip_tags(trim($_POST["address"]));
$address = $_POST['address'];
foreach($address as $value){
$address_list = implode( ',', $address);
}
and
$address = strip_tags(trim($_POST["address"]));
then in the auto responder i have
if($autoResponder == true){
$automail->AddAddress($emailaddress, $address_list);
Have you tried adding it to the addresses list? – I mean this line
$automail->AddAddress($emailaddress, $sendername);
Change it to this and test to see what happens
$automail->AddAddress($emailaddress, $address, $sendername);
I did try that too, I am noticing that I am not getting an autoresponder email at all on any emails.
dang it, autoresponder was turned off in settings.. that is why
I got the autoresponder working, but is not working for the clone input.
Figured out how to show the code properly
inside index.php
<div id="clone-group-fields">
<div class="toclone clone-widget">
<div class="spacer-b10">
<label class="field">
<input type="email" class="gui-input" name="address[]" id="address" placeholder="Enter address">
</label>
</div>
<a href="#" class="clone button btn-red"><i class="fa fa-plus" /></a>
<a href="#" class="delete button"><i class="fa fa-minus" /></a>
</div>
</div><!-- end #clone-fields -->
Inside smartprocess.php
$address = strip_tags(trim($_POST["address"]));
$address = $_POST['address'];
foreach($address as $value){
$address_list = implode( ',', $address);
}
also
$automail->AddAddress($emailaddress, $address_list);
Is it working now?
It is not, I do not get an autoresponder email, when I put an email into the
<input type="email" class="gui-input" name="address[]" id="address" placeholder="Enter address">
OK create an email list array generated by the field – name=”address[]” like this
Then inside the autoresponder if statement before it closes add these lines
$auto_addresses = explode(',', $result["address"]);
foreach ($auto_addresses as $address) {
$automail->AddBCC($address);
}
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