Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM restrict the pathbrowser content only option

rsl_lucky
Level 4
Level 4

Hi All,

 

Have a requirement where a workflow notification user selects task and completes it by providing path in 

custom dialog which was provided.

 

wf-query-1.png

 

Needs to Restrict other folder path selection in pathbrowser. Have used 'rootpath' property on pathbrowser to restrict it is to some extent working but using content only option mentioned in screenshot we can able to select other folder paths using it.

 

wf-query.png

 

How to resolve this use case by restricting users to select folder from certain hierarchy path only.

 

Thanks.

1 Accepted Solution
poojac35931336
Correct answer by
Level 4
Level 4

You can try acs-commons contextbrowser field. Here are the details.

View solution in original post

0 Replies
poojac35931336
Correct answer by
Level 4
Level 4

You can try acs-commons contextbrowser field. Here are the details.

View solution in original post

ChitraMadan
Community Advisor
Community Advisor

Hi @rsl_lucky ,

 

I am not sure, if I have understood your question correctly, but with rootPath property, you can restrict to any level in content.

 

rootPath = "/content/a/b/c/d"

Can you please give an example of what exactly you are trying to achieve.

 

rsl_lucky
Level 4
Level 4

Hi ChitraMadan,

 

Yes rootPath is serving the purpose to some extent but using ContentOnly option shown in screenshot is from where user can go & select any other folder path in AEM. This has to be restricted, Please let me know if you got the problem.

 

Thanks.

Arun_Patidar
Community Advisor
Community Advisor

Hi,

OOTB you can't. It only allows one root path.

 

But you can write javascript validation top of that with helptext hint.

 

Nikhil-Kumar
Community Advisor
Community Advisor

@rsl_lucky - 

You can specify the exact path of the folder in rootpath to restrict the pathfield to a specific folder .

sail83812260
Level 1
Level 1

Hi @Nikhil-Kumar, Yes rootPath is serving the purpose to some extent but not completly. Using ContentOnly option shown in screenshot is where user can go & select any other folder path in AEM. This has to be restricted, Hope you got the issue.