Subject says it all. I'm using an Artisteer generated form. Artisteer button class is "art-button". I apply this class to the Class option on the submit configuration. The submit button gets that class, but the reset and back button are still displayed with the default chrono classes instead of "art-button".
I verified this with FireBug in Firefox and reset/back did not get the "art-button" class applied.
Shouldn't the Class override apply to all buttons in Submit property?
I verified this with FireBug in Firefox and reset/back did not get the "art-button" class applied.
Shouldn't the Class override apply to all buttons in Submit property?
Hi euoceo,
I think that they probably should all have the same class, maybe Max will add that in a future version.
Meanwhile the simplest workaround is probably to use JavaScript to add the classes. Please try putting this in a Load JS action.
Bob
I think that they probably should all have the same class, maybe Max will add that in a future version.
Meanwhile the simplest workaround is probably to use JavaScript to add the classes. Please try putting this in a Load JS action.
window.addEvent('domready', function() {
$$('[name=reset]')[0].addClass('art-button');
$$('[name=back]')[0].addClass('art-button');
});
Bob
Same issue, 9 months later. Is there a process to have a "feature" added/requested? The class field still does not propagate to reset/back buttons on latest version.
It's a pain too, as I've come across a conflict. When loading the js code as recommended HERE in order to color labels of required fields, the code here conflicts. I assume because that both use domready function. But even when I snippet out and combine code, the required field stuff no longer works and form validation is entirely skipped too.
If the class field would propagate to the reset/back buttons this would solve the issue entirely..
It's a pain too, as I've come across a conflict. When loading the js code as recommended HERE in order to color labels of required fields, the code here conflicts. I assume because that both use domready function. But even when I snippet out and combine code, the required field stuff no longer works and form validation is entirely skipped too.
If the class field would propagate to the reset/back buttons this would solve the issue entirely..
Hi euoceo,
It should be possible to get the two sets of JavaScript to work together. What code are you using and what errors do you see?
Bob
It should be possible to get the two sets of JavaScript to work together. What code are you using and what errors do you see?
Bob
I put a link in my post as to the JavaScript code, it the code to parse through required fields so you can use css to color them. I did not start console debug to see the error.
This topic is locked and no more replies can be posted.