Forum Replies Created
- AuthorPosts
- March 17, 2014 at 11:22 am in reply to: Get value from text on page and set to Hidden Field ID #9197
kemiga
ParticipantDid you read my e-mail??
kemiga
ParticipantI’ve sent you an e-mail..
kemiga
ParticipantOk tried this and it worked. I know it’s a temporary workaround, but it worked:
// Fade all errors in
$('.iphorm-errors-wrap', $form).fadeIn(1000).show();$('.iphorm_1_5-group-wrap').show(); <-- added this unique line
$('.iphorm_1_10-group-wrap').show(); <-- added this unique line
And when submitting the form again & if having success, I added the following part:
// Custom success callback
if (typeof settings.success === 'function') {
settings.success();
}
});$('.iphorm_1_5-group-wrap').hide(); <-- added this unique line
$('.iphorm_1_10-group-wrap').hide(); <-- added this unique line
$('.iphorm-submit-input-wrap-4').hide(); <-- added this unique line
Thanks for the hints. Will look forward to the new plugin updates.
- This reply was modified 11 years, 4 months ago by
kemiga.
kemiga
ParticipantI found the code:
$('.iphorm-errors-wrap', $form).fadeIn(1000).show();
Could you be more specific what to do and what to add?
I guess you want to say add the following after the code above?
$('.iphorm_1_5-group-wrap').show();
- This reply was modified 11 years, 4 months ago by
kemiga.
kemiga
ParticipantHi Ally,
Thanks for the reply.
Well for me the easy workaround could be just to show the groups again if the error message appears.
How can I show the groups again if it there is an error?
kemiga
ParticipantOk, so I got to hide the groups.. but I still need to show all the groups again if there is an error.
For example, if some of the required fields is not filled.
.iphorm-errors-wrap
How to show the groups again if the form is not sent because of the missing required fields?
kemiga
ParticipantI actually found out how to hide the group. Might help others:
<script type="text/javascript">
jQuery(document).ready(function ($) {
$('#show-section-2').click(function () {
$(this).remove();
$('.iphorm_1_10-group-wrap').slideDown();
$('.iphorm_1_5-group-wrap').hide();
$('.iphorm-submit-wrap-2').show();
return false;
});
});
</script>
Just insert the .hide line below into the already existing code above
$('.iphorm_1_5-group-wrap').hide();
Cheers
- This reply was modified 11 years, 4 months ago by
- AuthorPosts