Custom widget: How to get the custom property 'campaign_code' value and check if the campaign_code is correct #19130
Replies: 3 comments
-
The full JS file is like this
|
Beta Was this translation helpful? Give feedback.
-
I managed to solve the issue following this thread #8258 (comment). |
Beta Was this translation helpful? Give feedback.
-
I have also posted a blog on this topic. This is because Elementor has so many free amazing add-ons. Easy-to-use features made creating websites a breeze. Here we talk about “Best Elementor Addons and Plugins for WordPress 2023 – Compared” You can check out it at – https://quomodosoft.com/best-elementor-addons-and-plugins/ |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have created a custom widget that displays a buy button with 'campaign_code' (with a possibility to change the number of tickets sold (-/+)). Please see screenshot.
I would like to check if the inserted campaign_code is correct when editor inserts it on the Elementor admin panel. I have inserted a javascript file for that. The code runs every time when the campaign_code input field changes:
I manage to get the change event and know when campaign_code value has changed. However, I struggle to to get the value for the property 'campaign_code'. CAMPAIGN_CODE_VALUE is always null.
Can anyone help me to get the value of campaign_code (CAMPAIGN_CODE_VALUE)?
Beta Was this translation helpful? Give feedback.
All reactions