You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Default Offer Letter Template in Offers Page

Summary:

We are trying to default the Offer Letter template In Offer Page based using certain Advanced Expression in VBS

Example: Trying to default Tutors Offer Letter Type where Recruiting Type is Tutors

/* eslint-disable dot-notation */
define([], () => {
'use strict';

/**

  • Fixed Term - Casual Offer Layout
  • @param {object} context
  • @return {boolean}
    */
    function runCondition(context) {
    const { $componentContext, $fields, $modules, $user } = context;
if (($componentContext.RecruitingTypeCode.includes('TUTORS'))) {
return { getRecruitingCreateOrUpdateJobOffersOfferLetterLayoutId };
}

return false;

}

/**

  • Default value expression for RecruitingCreateOrUpdateJobOffers.OfferLetterLayoutId
  • @param {object} context
  • @return {string}
    */
    function getRecruitingCreateOrUpdateJobOffersOfferLetterLayoutId(context) {
    const { $componentContext, $fields, $modules, $user } = context;
return '300000071539928';

}

return { runCondition, getRecruitingCreateOrUpdateJobOffersOfferLetterLayoutId };
});

Could you please advise?

Thanks,

Asha Jennifer

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!