Développer ma barre des réalisations de la Communauté.

RÉSOLU

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

Avatar

Level 3

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. 

Sujets

Les sujets facilitent la catégorisation du contenu de la Communauté et vous aident à retrouver le contenu le plus pertinent.

1 solution acceptée

Avatar

Réponse correcte par
Employee

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

Voir la solution dans l'envoi d'origine

1 Reply

Avatar

Réponse correcte par
Employee

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