Show the form output dynamically in ADF with APS

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

Show the form output dynamically in ADF with APS

Hi everyone,

(Note that i'm using APS 1.9 and ADF 3.5)

We would like to create a "special" form where the outputs can appear dynamically in function of, for example : 

  • the user connected
  • value of a checkbox
  • value of a dropdown
  • etc...

I understand that, every possible outputs needs to be in the original form (in APS).
But is it possible to make dynamical the "output buttons" with simple lines in ADF (with css or else ?)
If so, can anyone help us on the way to do it ?

Thank you for helping !

1 Reply
Highlighted
Active Member II

Re: Show the form output dynamically in ADF with APS

You can apply your strategy here 
https://github.com/Alfresco/alfresco-ng2-components/blob/development/lib/process-services/src/lib/fo...
Something like 

outcomes: [
        {
            id: 'myaction1',
            name: 'My Action 1'
        },
        {
            id: 'myaction2',
            name: 'My Action 2'
        }
    ]

And as part of the 
https://github.com/Alfresco/alfresco-ng2-components/blob/development/lib/core/form/components/form-b...

if (outcome.id === 'myaction1') {
            // your code
}