Theme is stripping button ID for submit

+1
0
-1

I am using the Zircon theme which is using nucleus as it's base. I am also using Webforms and have an issue where nucleus is showing my button id as blank. I traced it to this line in ovveride_functions.inc:


function nucleus_button($vars) {
$element = $vars['element'];
$element['#attributes']['class'][] = 'form-' . $element['#button_type'];
$button_id = (isset($element['#id']) ? $element['#id'] : "");
return '

\n";
}

Is this a conflict with Webform and how can I fix this?

Thanks!

+1
0
-1

Hi Paul,

Could you specify which type of button has that issue? We have used Webform to create a Contact Us page for TB University which use Nucleus as a basetheme and has no trouble with button id.

Kind regards,
Will

+1
0
-1

Hi Will.

On a non-nucleus based theme this is what my submit button looks like in Firebug:

On my nucleus based theme this what my submit button looks like in Firebug:

As you can see - on my nucleus theme the id is blank.

Hopefully you can find a fix for this. I do enjoy using your themes but really need to have the ajax part of my webform working.

Thanks!
Paul

+1
0
-1

Sorry - not sure what happened to my code.

This is what my submit button should look like in Firebug:

This is what it looks like using a nucleus based them:

+1
0
-1

Following up on this question:

The webform button I am having an issue with is the submit button. I am using Webform Ajax and would like to have an ajax throbber appear when the next page or confirmation page is loading. In non-nucleus based themes this is not an issue. The submit button id comes out as edit-webform-ajax-submit-22 where the 22 is the webform id.

On my nucleus theme the button id is completely blank: id="". This causes the ajax throbber to not appear when the next page / confirmation page is loading.

I believe the problem stems from override_functions.inc file under the function nucleus_button($vars) section but have no idea how to correct it.

Thanks for any help.