List Manager Forum

minor annoyance when editing in front-end

User moon_1262 2026-01-29 11:47:11

Hi,

I have my list set with these two options:
- open details when user clicks on line
- checkbox to edit details

Unfortunately, when my users click the checkbox to edit the details, they first have to close the pop-up that opens because the line was clicked.
I know a simple onclick="event.stopPropagation();" on the input tag could prevent this from happening.

Is there another way to do this ?

Thanks,
kind regards,
--
Pascal

Moonsoft support 2026-01-30 09:43:34

Hi,
yes, if you enable those 2 features at the same time you will have both of them working with the click event on the check. The solution using javascript is a little bit more complex because you have to wait until records are loaded, here the right script that you can add to your list, at the List configuration->Javascript configuration page:

var _lmcallback=").click( function(evt){ evt.stopPropagation(); }); }); '];

Hope this helps, regards
Silvia Martín
Moonsoft Team

User moon_1262 2026-01-30 10:49:14

Thanks Silvia,

I had realized that I couldn't implement a simple onclick because of the delayed loading but failed to craft a proper solution.
Yours does it splendidly !

kind regards,
--
Pascal

...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!
...
Support/development 40 hours

With the peace of mind of having a professional team at your service (20% discount)

Buy now!