Javascript Variable dmx-parse dynamic variable in JS

Hello Wappler,
I have looked at the community docs but not getting this to work

<div class="btn card-footer btn-primary text-center pt-0 pb-0 ps-0 pe-0 border-0 bg-info w-auto h-auto rounded-bottom mouse-hover" alt="" 
dmx-on:click="showProfile.show();filterConsSearchModal.load({id: userIDkey.value})" 
onclick="javascript:window.history.pushState('somevar', 'Title', 'profile.php?id'+dmx.parse('userIdentity.data.userid'));">

Should the onclick JS move into the dmx-on:click? Or is there something missing in the +dmx-parse(’’);?

Thank you for any help :slight_smile:

Community Page
Last updated: