send button not working
-
Hi..Thank you for your awesome plugin. i have a problem with the send button. it works perfectly at first and i got the emails also. but when i edit the code inorder to add one more field into the form the problem starts. now after i click on the send button nothing is happening. how can i fix this?
i just updated contact-form.view.php by inserting the following code after name:<!--phone--> <div class="control-group form-group<?php if (isset($contact->Errors['phone'])) echo ' error has-error'; ?>"> <label for="cscf_phone"><?php _e('Phone:','cleanandsimple');?></label> <div class="<?php echo cscf_PluginSettings::InputIcons() ? "input-group" : ""; ?>"> <?php if ( cscf_PluginSettings::InputIcons() == true ) { ?> <span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span> <?php } ?> <input class="form-control input-xlarge" data-rule-required="true" data-msg-required="<?php _e('Please give your phone number.','cleanandsimple');?>" type="text" id="cscf_phone" name="cscf[phone]" value="<?php echo $contact->Phone; ?>" placeholder="<?php _e('Your Phone Number','cleanandsimple');?>" /> </div> <span for="cscf_phone" class="help-inline help-block error" style="display:<?php echo isset($contact->Errors['phone']) ? 'block' : 'none'; ?>;"> <?php if (isset($contact->Errors['phone'])) echo $contact->Errors['phone']; ?> </span> </div>
and inserted this line in class.cscf_contact.php
//phone if (strlen($this->Phone) == 0) $this->Errors['phone'] = __('Please give your phone number.','cleanandsimple');
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘send button not working’ is closed to new replies.