I am working with one our customers on a Forms issue.
When the user inputs an ID (TalentEd CID), it does a lookup to populate the First Name, Middle Name, Last Name, Current Emplid and also the Applicant's Email. If the TalentEd ID does not have a Current Emplid associated with the user then he/she is only allowed limited selection in the Position drop down list. There would be an alert prompt, 'The applicant must be a current employee for this position' if they select the wrong Position.
The problem is the event listeners are not passing along to a duplicate collections field which prevents JQUERY from running a check on a field value. After clicking the "Add" button the 2 functionalities that are not working is the Current Emplid is no longer a read only, and it does not prompt the alert when we select a position that is not allowed for the user.
Here is the JavaScript codes:
function positionCheck() { var id = $(this).attr('id'); if (($('.vPos :selected').val() == "01" || $('.vPos :selected').val() == "02" || $('.vPos :selected').val() == "05" || $('.vPos :selected').val() == "06" || $('.vPos :selected').val() == "07" || $('.vPos :selected').val() == "08" || $('.vPos :selected').val() == "09" || $('.vPos :selected').val() == "10" || $('.vPos :selected').val() == "11" || $('.vPos :selected').val() == "12" || $('.vPos :selected').val() == "13" || $('.vPos :selected').val() == "14" || $('.vPos :selected').val() == "16") && $('.vCurrEmplid input').val() == "") { alert('The applicant must be a current employee for this position'); $('.Submit').hide(); return false; }else{ $('.Submit').show(); } } $('#form1').submit(function(){ $('.rpx').each(function(){ if (!positionCheck()){ return false; } }); }); $('.cf-collection-append').on('click', function() {});
We have also tried to do...
$(document).on('click','#q334 > a', function() {});
AND
$('.cf-collection-append').click(function() {
$.addCollection($(this));
});
They are currently on version 10.1.0.559. We have been told to upgrade to 10.2.1 but that is planned for months down the line and would like to see if anyone has had this issue and/or solution.
Any help would be appreciated! :) Thank you!