Skip to content

Convert elements later, fixes CRM.radiobuttonsFormRadiosAsButtons is not a function

JonGold requested to merge JonGold/radiobuttons:load-later into master

This extension stopped working for me recently-ish but I'm not sure when. On both my sites I use this, I now get:

Uncaught TypeError: CRM.radiobuttonsFormRadiosAsButtons is not a function

I'm guessing something's changed and the order that Civi::resource() resources load has changed, or at least is non-deterministic - and we're running the function before it's loaded.

By explicitly running the function later, this problem goes away for me.

Merge request reports

Loading