Reply To: Rule issue with multiple content types

Forums Classic DFFS Rule issue with multiple content types Reply To: Rule issue with multiple content types

#24499
Alexander Bautz
Keymaster

OK, it seems the function that tries to validate the people picker fails when the field is not in the content type. You need to make some changes and create two rules like the attached images, and then one function in Custom JS like this:

function isCorrectCT_setPeoplePicker(){
    var isTC = spjs.dffs.beforeProperties.TrainingCoordinator_ID[0] === String(_spPageContextInfo.userId);
    if(isTC){
        spjs.dffs.triggerRule(["isTC_CallFromCustomJS"]);
    }
}

Please note that you should NOT use quotes around the content type names in the rule trigger “This value” field.

Let me know how this works out.

Alexander