How to control who can see a section on form used in workflows with Bean Shell code?

Confluence User - 11 Nov, 2017

 Hi friends, 

 In a workflow i need that the requesting user see some instrucctions, i used a section with html field to show the instrucctions, later when the approver charge the form i need hide this info for this user.

 i want to use Bean Shell Script to  Configure Permissions in certain sections , anybody have examples?


  


forms

2


12 Nov, 2017
confluenceUser
confluenceUser

Hi, I believe the Bean Shell Permission script just needs to return either true or false according to https://dev.joget.org/community/display/KBv6/Bean+Shell+Permission. Alternatively, you can also just Show and Hide Form Sections according to the value of a field, for example if status is approved or such.

20 Nov, 2017
confluenceUser
confluenceUser

Hi Anders, the second option apparently work if you are using the variable workflow in the current form, i did test and work very well in the firts form (the section was hidden), but when i called this form as a subform this don not work, so the question is: how can i get the workflow variable to hide the section? in other hand, do you have an example of the second option that use bean shell? thanks Fabian

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print