webform submitt button

Pako204's picture
Pako204
Wed, 11/04/2015 - 06:25
#1
webform submitt button

I have two problems with webform submit button:

1) webform submit button don't display: http://www.lamaisoneventi.it/sito/node/145

2) in page: http://www.lamaisoneventi.it/sito/contact-map-bottom don't is possible traslate submit button text  "Send Message" 

Image title

phuonght's picture
phuonght
Thu, 11/05/2015 - 22:07

Hi,

We fixed problems already. Please check your site and see if it works.

Pako204's picture
Pako204
Mon, 11/09/2015 - 04:44

hi,

data selection don't work, name input don't work, input email style is different from name and telephone input.

http://www.lamaisoneventi.it/sito/node/144

phuonght's picture
phuonght
Tue, 11/10/2015 - 02:53

- Input email style: 

Please go to /sito/node/144/webform/components/6?destination=node/144/webform

edit CSS classes to form-control placeholder.

- Data seclection:

Fixed it already. Please check.

Pako204's picture
Pako204
Tue, 11/10/2015 - 08:04

ok ...  Thanks

andrea.brogi's picture
andrea.brogi
Thu, 12/03/2015 - 05:37

Hi,

I have the same problem with the text of submit button.

How to fix it?

phuonght's picture
phuonght
Thu, 12/03/2015 - 22:07

Hi Andrea.Brogi,

With problem "can not translate text":

Please go to theme > md_make > theme_setting > front, open file function.theme.inc. 

Line 367 : 

replace

$form['actions']['submit']['#value'] = 'Send Message'; 

with

$form['actions']['submit']['#value'] = t('Send message');

andrea.brogi's picture
andrea.brogi
Fri, 12/04/2015 - 03:43

Thanks, now i'm able to translate the text.

But I have two webform and I'would like to use "Submit button label" text set inside advanced option. It is possible?

phuonght's picture
phuonght
Fri, 12/04/2015 - 05:43

Could you describe more? We do not understand clearly which you would like to do with submit button? 

andrea.brogi's picture
andrea.brogi
Fri, 12/04/2015 - 06:17

Like into #1 images I have write the text of submitted button into the "Submit button label" field.
Usually when you do this the text compare into the button.

phuonght's picture
phuonght
Sun, 12/06/2015 - 23:05

Please go to theme > md_make > theme_setting > front,

open file function.theme.inc, above line 367

  elseif (stristr($form_id, "webform_client_form")&& $form['#id']=='webform-client-form-54') {


insert below code:

    elseif (stristr($form_id, "webform_client_form")&& $form['#id']!='webform-client-form-54'){
$form['actions']['submit']['#value'] = $form['#node']->webform['submit_text'];
}

then in code block section:

elseif (stristr($form_id, "webform_client_form")&& $form['#id']=='webform-client-form-54') {

replace

$form['actions']['submit']['#value'] = t('Send message');

with 

$form['actions']['submit']['#value'] = $form['#node']->webform['submit_text'];
phuonght's picture
phuonght
Fri, 12/11/2015 - 23:53

Ekkljs, 

Sorry for your incovenience but we will update the fix later.

Could you send us your site information so we can take a look at your webform and give detailed instruction to fix problem?

ekkljs's picture
ekkljs
Fri, 12/11/2015 - 23:58

after applying it, server is down....

phuonght's picture
phuonght
Sat, 12/12/2015 - 02:32

Please send us your site information so we can check problem for you.

phuonght's picture
phuonght
Sat, 12/12/2015 - 02:42

Sorry. But we can not make sure. We need to take a closer look and check exactly what reason is. 

It is just a quick fix so please do not worry.

phuonght's picture
phuonght
Sat, 12/12/2015 - 05:28

Please open block webform, insert class make-webform. Then in theme setting, insert following CSS code:

.make-webform .webform-client-form {
padding-bottom: 60px;
margin-top: 80px;
}
.make-webform .webform-client-form .form-actions {
position: absolute;
bottom: 0px;
left: 30px;
}

ekkljs's picture
ekkljs
Sat, 12/12/2015 - 07:01

thank you. how to make "submit" button hoover effect?

phuonght's picture
phuonght
Sun, 12/13/2015 - 23:22

Please:

  • Open file site/all/themes/md_make/theme_setting/front/function.theme.inc

  • Find line 362,

function 

md_make_form_alter(&$form, &$form_state, $form_id) {
  • below section block code user login

if (($form_id == 'user_login') || ($form_id == 'user_register_form') || ($form_id == 'user_pass')) { ........ }

insert:

elseif (stristr($form_id, "webform_client_form")){ $form['actions']['submit']['#attributes'] = array('class' => array('btn', 'button-line', 'button-dark', 'btn-rounded', 'hover-effect', 'm-t-30')); }

Save and clear cache.

ekkljs's picture
ekkljs
Mon, 12/14/2015 - 02:56

thank you. i will test it later cause it is not an ideal time to change something now.

by the way i configured to send the notificiation email when webform is submitted and none of email came to me. I can see following message, Undefined index: #type in md_themesetting_form_element_label() (line 262 of /var/www/../public_html/sites/all/modules/custom/md_themesetting/md_themesetting.module).

it seems like that notification function is broken. any fix?

phuonght's picture
phuonght
Mon, 12/14/2015 - 04:12

Please open file site/all/modules/custom/md-themesetting/md_themesetting.module

line 262, delete:

if ($element['#type'] == 'checkbox' || $element['#type'] == 'radio') { }
ekkljs's picture
ekkljs
Mon, 12/14/2015 - 23:42

error message is gone. however email notification isn't still working.

phuonght's picture
phuonght
Tue, 12/15/2015 - 02:49

Please send us your site information. It is impossible to find any error with just a site url. 

We will work in a short time so please do not worry.

phuonght's picture
phuonght
Tue, 12/15/2015 - 04:10
Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.