Lanuch Reactor API Rule Component creation for URL condition | Community
Skip to main content
January 12, 2023
Question

Lanuch Reactor API Rule Component creation for URL condition

  • January 12, 2023
  • 1 reply
  • 703 views

I am coding Reactor API using node.js to create a new rule condition. 

This rule should fire when clicked <a href url contains a perticular pattern (eg. href="tel:123456" condition, href contains "tel:").

I have following API call as example:

....

attributes: {

name: 'click-event',

settings: JSON.stringify({

bubbleFireIfChildFired: true,

bubbleFireIfParent: true,

elementSelector: 'a#checkout'

}),

order: 0,

delegate_descriptor_id: 'core::events::click'

},
.......

 

What should the settings / elementSelector contain - so that this fires when URL contains a perticular patteren?
I am new to the API, hence apologies if I am asking a basic question.

 

Thanks in advance.

Regards

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

_Manoj_Kumar_
Community Advisor
Community Advisor
January 18, 2023

Hello @varun_d 

 

Create a rule with element seelctor a[href^="tel:"]

 

     Manoj     Find me on LinkedIn
varun_dAuthor
January 19, 2023

Thanks a lot @_manoj_kumar_ . Where can I read more about the API calls & related documentation?