Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Hobbes - Dynamic options

Avatar

Level 1

Hi,

I am new to hobbes. I am trying to load the options dynamically. For example, when the country is selected, the corresponding state list has to be loaded.

.execSyncFct(function() { hobs.find('[name="country"]').val("US").change() })

While using the above line to select the country, the onchange event is not getting triggered and the state list is not loaded.

Could anyone help me out.

1 Reply

Avatar

Administrator

Are you getting any browser error for this?

Also look at this :- https://docs.adobe.com/docs/en/aem/6-0/develop/components/hobbes.html#Example: Testing Product Purchasing

// EXAMPLE: TESTING PRODUCT PURCHASING

execSyncFct(function() { hobs.find('[name="billing.country"]').val("AT"); })

Please try to follow this.

~kautuk



Kautuk Sahni