Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Auto execute a web service upon exiting a text field

Avatar

Level 4
The process: After the user fills in a text field and exits the field (by tab or mouse), we want 5 other fields automatically populated from a web service.



I've found information similar to this but only upon a click of a button. Is there a way to do this from a text field??



Thanks.
2 Replies

Avatar

Level 5
You may use the same code in 'exit' event.

Avatar

Former Community Member
Change the button's visibilty setting on the Object - Field tab and refer to the button on a text field's exit event in code:



button1.execEvent('click');