Try to find and use session.getUserID() in Forms Designer - Rule Editor - Script | Community
Skip to main content
Level 2
July 6, 2020

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

  • July 6, 2020
  • 1 reply
  • 1947 views

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-adaptive-forms-article-use.html 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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Mayank_Gandhi
Adobe Employee
Adobe Employee
July 6, 2020

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

Level 2
July 6, 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?