cancel
Showing results for 
Search instead for 
Did you mean: 

Process scripts in adf

Juancarlos_gp
Champ in-the-making
Champ in-the-making

Hello,

I have some forms wiht scripts working well in the process, but this scripts don´t work in ADF, I don´t know the resasson.

Can someone help me?

Thanks for your help!

J.Carlos

3 REPLIES 3

EddieMay
World-Class Innovator
World-Class Innovator

Hi @Juancarlos_gp,

Can you provide more detail please? Are there log files, error messages, etc? Without such information it's hard to know how to assist you.

Regards,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!

Hi @EddieMay 

Thanks for your quit answer,

I using the following script in the process:

formFieldValueChanged:

if(field.id === 'dropdown'){
    var conditionalfield = scope.findFormFieldWithId(scope.allFormFields, 'conditionalmandatory')
    if(field.value.id === 'optional'){
        conditionalfield.required = false
    }
    else if(field.value.id === 'mandatory'){
         conditionalfield.required = true
    }
}
FormRendered:
 
var dropdownfield = scope.findFormFieldWithId(scope.allFormFields, 'dropdown')
var conditionalfield = scope.findFormFieldWithId(scope.allFormFields, 'conditionalmandatory')
if(dropdownfield.value.id === 'optional'){
    conditionalfield.required = false
}
else if(dropdownfield.value.id === 'mandatory'){
     conditionalfield.required = true
}
 
 
This script work correct, but in adf don´t work
the version of Process is 1.11 and the ADF is 3.8
 
Thank´s for your support
 
J.Carlos
 
 
 
 

The old AngularJS scripts are not supported by ADF and Angular.