Hey Guys
Wanted to change the sections for the contact form and figured out how to do that, but now my emails are not being sent and when you fill out the form and click submit, the message "your message has been sent successfully" doesn't show up. Please any help would be great!
Contact Form
10 posts from 3 voices-
Posted 1 year ago #
-
Oh by the way...here is my link
Posted 1 year ago # -
Hey,
What code did you change?Posted 1 year ago # -
Can I send you my login so you can check it out? I'm not great with coding stuff
Posted 1 year ago # -
this is the section that I tried to update and when I did it knocked out the message sending to my email
/**
* The Contact form gets generated by the avia_form class located in framework/php/class-form-generator.php
*/$form_args = array(
"heading" => "<h3>".__('Send us a message','avia_framework')."</h3>",
"success" => "<h3>".__('Your message has been sent!','avia_framework')."</h3><p>".__('Thank you!','avia_framework')."</p>",
"submit" => __('Send','avia_framework'),
"action" => get_permalink()
);$elements = array(
'yourname' => array('type'=>'text', 'label'=>__('Name','avia_framework'), 'check'=>'is_empty'), //user name
'email' => array('type'=>'text', 'label'=>__('E-Mail','avia_framework'), 'check'=>'is_email'), //user email
'phone #' => array('type'=>'text', 'label'=>__('Phone Number','avia_framework'), 'check'=>'is_empty'), //user phone
'subject' => array('type'=>'text', 'label'=>__('Subject','avia_framework'), 'check'=>'is_empty'), //subject
'message' => array('type'=>'textarea','label'=>__('Message','avia_framework'), 'check'=>'is_empty'), //message
'myemail' => array('type'=>'hidden', 'label'=>'', 'check'=>'', 'value'=> avia_get_option('email') ), //email adress the form should be sent to
'myblogname'=> array('type'=>'hidden', 'label'=>'', 'check'=>'', 'value'=> get_option('blogname') ), //name of the website, gets added to the subject line
'username' => array('type'=>'decoy', 'label'=>'', 'check'=>'must_empty'), //decoy input field for bots, input field gets hidden, if bot enters value form wont be submitted);
$contact_form = new avia_form($form_args);
$contact_form->create_elements($elements);
$contact_form->display_form();?>
Posted 1 year ago # -
Hey,
you stated you changed some code, can you tell us what exactly you changed? It's hard for us to go and look for what you did.. we're not responsible for your own customisations so we can't help unless you tell us what you did.Posted 1 year ago # -
'phone #' => array('type'=>'text', 'label'=>__('Phone Number','avia_framework'), 'check'=>'is_empty'), //user phone
this was the only code i changed. it did say website and i changed it to phone number. all i wanted to do was to change that one title and for some reason now the form is not sending to my email and it is not giving me the success that my form had been sent.
Posted 1 year ago # -
Instead of:
'phone #' => array('type'=>'text', 'label'=>__('Phone Number','avia_framework'), 'check'=>'is_empty'), //user phonetry:
'phonenumber' => array('type'=>'text', 'label'=>__('Phone Number','avia_framework'), 'check'=>'is_empty'), //user phonePosted 1 year ago # -
works perfectly dude...thanks so much for your help!
Posted 1 year ago # -
Glad that I could help you :)
Posted 1 year ago #
Reply
You must log in to post.














