Swing up Form TEMPLATE MOD ISSUE ERROR AFTER CLONING

It took me a while to grasp the error. It does occurr due to the TEMPLATE-MOD BEEING CLONED. Please assist.

Prerequisites

  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed
  • this issue relates to a TEMPLATE Mod in the anymod Template gallery , thus it is publicly viewable

Expected Behavior

If the send button is clicked while the Message field is empty , an alert should show up , but that does not happen

Current Behavior

The expected alert does not show up

Failure Information (for bugs)

Steps to Reproduce

for reproducing the issue please FIRST CLONE THE BELOW TEMPLATE MOD:

https://anymod.com/mod/swing-up-form-rdokl

Then click the send button without text inside message-textfield

Steps:

  1. do not Enter text into the form’s input fields
  2. Click the submit button
  3. View the source and see the following line of JS code is not performing

if (!this.message) return this.alert = 'Please add your message'

Context

the setup is simple: The bug does NOT OCCUR right inside the Template MOD , but once the Mod is cloned, the error will be prevailing. The case is easily reproducible.

It took me a while to grasp the error. It does occurr due to the TEMPLATE-MOD BEEING CLONED. Please assist.

Hi Stefan, it looks like the mod template got set to handlebars but not recompiled as such. We’ve set it to “Plain HTML” and now cloning it works properly.

To fix any of the mods you’ve already cloned, set them to “Plain HTML” instead of Handlebars.

Thank you for reporting!

1 Like

Thank you. After switching to plain html the issue was gone.