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
BedrockMission!

Learn More

View all

Sign in to view all badges

Try to find and use session.getUserID() in Forms Designer - Rule Editor - Script

Avatar

Avatar
Validate 1
Level 1
wendelinfa
Level 1

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
View profile

Avatar
Validate 1
Level 1
wendelinfa
Level 1

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
View profile
wendelinfa
Level 1

06-07-2020

Hello

 

As I'm new in this Borad I hope to be on the right audience.

We use AEM Forms 6.4 and extending our Forms with more prefilling and other functionality.

 

I found https://docs.adobe.com/content/help/en/experience-manager-learn/forms/adaptive-forms/prefill-service... as one possible solution to get the logged in UserId (from the current Session).

 

Is there a option to do that in the Rule Editor directly by a Script without background pachages, bundles ..?
Goal would be triggering by a Button this Rule and prefil textfields with Profile Information from the logged in User.

 

Thanks in advance for any help.

 

Wendelin

Replies

Avatar

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct Reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct Reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

06-07-2020

@wendelinfa  I doubt you can do that in the rule editor directly. 

Avatar

Avatar
Validate 1
Level 1
wendelinfa
Level 1

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
View profile

Avatar
Validate 1
Level 1
wendelinfa
Level 1

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
View profile
wendelinfa
Level 1

06-07-2020

I allready gave theme a try (aem_userId.value = session.getUserID();) - without success .. there was no reaction - is there a special syntax - how can i debug it?

Avatar

Avatar
Validate 1
Level 1
wendelinfa
Level 1

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
View profile

Avatar
Validate 1
Level 1
wendelinfa
Level 1

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
View profile
wendelinfa
Level 1

07-07-2020

@Mayank_Gandhi are there other sources where I can find Information about Rule Editor Script like samples, syntax, documentation ..

Avatar

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct Reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct Reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

07-07-2020

Avatar

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct Reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct Reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

08-07-2020

Avatar

Avatar
Validate 1
Level 1
wendelinfa
Level 1

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
View profile

Avatar
Validate 1
Level 1
wendelinfa
Level 1

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
View profile
wendelinfa
Level 1

08-07-2020

@Mayank_Gandhi Thanks for the links / the data source I ztryed before - unfortunately the UserID ist not part of the schema (only name, firstname .. email) - The UserId is planned to use later in the workflow to assign tasks (I found a option in the workflow usind the Workflor Initiator witch ist part of the Workflow Metadata). It would be still helpfull to get Session Information like UserID directly via Rule Editor. As this seems to be not a common approach we can freeze this Topic - I will recheck it in the upcomming Version 6.6 as we have there then the Rule editor also in the Workflow Designer Area)