AEM Forms Forum

Q: Value Commit Fires Programmatically

I created an adaptive form up in the Sandbox called Davids Value Commit Example. It shows that the value commit event fires programmatically without the user participation. Preview the form and you will see the value commit on the drop-down fires upon form initialization. David Zhang

david.zhang@nationwideappraisals.com, 2022-03-24 15:27:08

jp@smartdoctech.comcommented:March 24th, 2022

Interesting. I saw this behavior on the form too. Does it occur with any JavaScript or only if another JavaScript is calling the specific form field. - JPT

David.Zhang@nationwideappraisals.comcommented:March 24th, 2022

I put this script into the Value Commit event of a drop-down field. console.log("The Value Commit event of the drop-down fires."); There is another script on this form that sets the value of this drop-down field upon initialization. When this script is run, the Value Commit event on the drop-down fires and the script is displayed in the console. I want the Value Commit event on the drop-down to only fire when a user clicks the drop-down.

David.Zhang@nationwideappraisals.comcommented:March 24th, 2022

JP, follow these steps to change this behavior.
1. Login to your server and go to Web Console Configuration. http://:4502/system/console/configMgr
2. Search for Adaptive Form and Interactive Communication Web Channel Configuration.name
3. Click Edit the configuration values (the pencil icon).
4. Click the drop-down and switch from None to AEM Forms 6.1.

Reply

Attach a screenshot or PDF file (optional)


Welcome...

The AEM Forms Forum is designed to help you post questions about AEM Forms and benefit from the questions and answers posted by your colleagues. You can access detailed documentation and courseware about the topics in your question with your SmartDoc Subscription.

Adaptive Forms

Programming