Skip to main content
Level 4
Oct 24, 2025 10:04 AM UTC
Solved

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

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. 

Pranay_MAccepted solution
Adobe Employee
Oct 28, 2025 10:29 AM UTC

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
Oct 28, 2025 10:29 AM UTC

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

Translate