Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cancel Button? #17

Open
brianjclark opened this issue Jun 8, 2013 · 2 comments
Open

Cancel Button? #17

brianjclark opened this issue Jun 8, 2013 · 2 comments

Comments

@brianjclark
Copy link

Sorry its not exactly an issue but can't find answer anywhere else.

How on earth do you add a cancel button! lol

Can use the HTML component but then it doesn't appear alongside the Submit button at the bottom of the form!?

Any ideas would be great. Am using the closure compiled code from the jFormer website. says 1.4.4 ;)

many thanks brian.

@brianjclark
Copy link
Author

Ah am using your code now and think I'm closer.

jFormer line 734 should be:

$cancelButtonLi->update($cancelButton);

not

$cancelButtonLi->append($cancelButton); ????

as there isn't an append method. Update works splendid though! :)

@brianjclark
Copy link
Author

nope make that ->insert method otherwise none of the attributes are "built", and jFormer 731 needs to be "setAttribute" not attr to update the onClick method.

sorry I am a learner at jquery and javascript ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant