Expand my Community achievements bar.

Load target activity changes on button click

Avatar

Level 3

I want to load the changes of target activity on button click not on page load.

5 Replies

Avatar

Community Advisor

Can you elaborate more on your use case? Overall, I think that is not the main purpose of Target. What you are describing sounds more like regular JavaScript code that runs directly on the website



Esteban Bustamante

Avatar

Level 3

We have a page and we made changes in VEC as per our requirement for particular audience.

 

Generally when the page loads target gets triggered audience gets satisfied and changes are visible.

 

My requirement is to load the changes when User clicks on any button not on page load.

 

 

Avatar

Community Advisor

Hi @varun790 

Please elaborate more about the usecase.

However, If you mean to use mbox of target based on clicking of a button, You can call delivery API from the backend to get mbox JSON response and accordingly show UI.

Regards,
Arpit Varshney

Avatar

Administrator

@varun790 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni