Process scripts in adf

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Customer

Process scripts in adf

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
Highlighted
Community Manager
Community Manager

Re: Process scripts in adf

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!
Highlighted
Customer

Re: Process scripts in adf

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
 
 
 
 

 

 

Highlighted
Alfresco Employee

Re: Process scripts in adf

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