Skip to content

Two button form: validate only if one of the button clicked ? #1335

Discussion options

You must be logged in to vote

@chmike The second submit button could remove the field rules and then submit the form as usual

$('.ui.secondary.submit.button').click(function(){
	myform.form('remove fields',['login','password']);
});

See https://jsfiddle.net/xkhepq9c/

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by lubber-de
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1335 on October 07, 2020 16:10.