Created
June 7, 2019 05:52
-
-
Save anil826/52e4ad33e8f39588ded8ad70346fbac6 to your computer and use it in GitHub Desktop.
Required Filed validation for repeat group
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).on('keyup','.existing_repeat_entry_panel #component-85c0-fbd0-4cf4', function(){ | |
//Check the value of requied filed | |
//Loop for repeat index | |
for (var repeat_index=0; repeat_index < window.formyoula.form_fields["5fb5-8b93-521e"].get('repeat_value').length; repeat_index++ ) { | |
//Check the value of requied filed | |
if ($('#collapse_5fb5-8b93-521e_'+repeat_index+' #component-85c0-fbd0-4cf4 .input_content').val()) { | |
//Enable the submit button | |
$(".finish").attr('disabled',false); | |
} else { | |
//Disable the submit button | |
$(".finish").attr('disabled',true) | |
break; | |
} | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment