How to dynamic set values to Adaptive form field from cookie in the browser in AEM 6.5 | Community
Skip to main content
Level 3
October 24, 2025
Solved

How to dynamic set values to Adaptive form field from cookie in the browser in AEM 6.5

  • October 24, 2025
  • 1 reply
  • 234 views

Hi,

 

I have a requirement to dynamic populate few Adaptive form fields. The dynamic values are updated as cookie in the browser, and when the user access the form, certain fields needs to be updated based on the values in the cookie.

 

Can I achieve this using jquery/js?

 

I have not worked with Adaptive Forms Class: GuideBridge before, hence asking if I need to initiate GuideBridge inorder to set values in adaptive form field? any help is appreciated. Thank you. 

Best answer by Pranay_M

Hi @smrithigo,

Yes, you can absolutely use JavaScript or jQuery to dynamically set field values in Adaptive Forms based on browser cookies—but the key is to use the GuideBridge API. GuideBridge is the JavaScript API for AEM Adaptive Forms. It allows your custom code to interact with form fields—set/get values, focus, validate, and listen to events, among other actions.

Thanks
Pranay

1 reply

Pranay_MAdobe EmployeeAccepted solution
Adobe Employee
October 28, 2025

Hi @smrithigo,

Yes, you can absolutely use JavaScript or jQuery to dynamically set field values in Adaptive Forms based on browser cookies—but the key is to use the GuideBridge API. GuideBridge is the JavaScript API for AEM Adaptive Forms. It allows your custom code to interact with form fields—set/get values, focus, validate, and listen to events, among other actions.

Thanks
Pranay