TypeError: ff_getElementByName(...) is null

  • uglyeoin
  • uglyeoin's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 284
  • Karma: 5
  • Thank you received: 3

uglyeoin created the topic: TypeError: ff_getElementByName(...) is null

I'm getting this error in the console:
TypeError: ff_getElementByName(...) is null

Could this be caused by a multipart form? I'm a little confused.
#238590
  • Posts: 2785
  • Karma: 95
  • Thank you received: 376

mihaela replied the topic: TypeError: ff_getElementByName(...) is null

Hello,

I assume that you have writen some custom script that is causing this error.

Do you have some custom script written?

Regards,

Mihaela
#238591
  • uglyeoin
  • uglyeoin's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 284
  • Karma: 5
  • Thank you received: 3

uglyeoin replied the topic: TypeError: ff_getElementByName(...) is null

I have scripts but none are using
ff_getElementsByName

Here are the scripts I have:

Add/Delete. A BF script I downloaded which adds and deletes sections to make repeatable sections.
function ff_headerContact_init()
{
  WrapperScriptAddDelete();
} // ff_Wra

function ff_SampleQuickModeContactForm_submitted(status, message){if(status==0){ff_switchpage(2);}else{alert(message);}}


$document = JFactory::getDocument();
$document->addScript(' cdnjs.cloudflare.com/ajax/libs/slim-sele....0/slimselect.min.js ');
$document->addStyleSheet(' cdnjs.cloudflare.com/ajax/libs/slim-sele...0/slimselect.min.css ');

$document->addScriptDeclaration('
function onRangeChange() {
document.getElementById("ff_elem387").addEventListener("input", (event) => {
document.getElementById("ff_elem396").value = Number(document.getElementById("ff_elem387").value).toLocaleString();
});
document.getElementById("ff_elem413").addEventListener("input", (event) => {
document.getElementById("ff_elem414").value = document.getElementById("ff_elem413").value;
});
}


Listens to my slider input and updates a read only input with the value.
function ready(fn) {
  if (document.readyState != "loading") {
    fn();
  } else if (document.addEventListener) {
    document.addEventListener("DOMContentLoaded", fn);
  } else {
    document.attachEvent("onreadystatechange", function() {
      if (document.readyState != "loading")
        fn();
    });
  }
}

window.ready(function() {
    document.getElementById("ff_elem387").type = "range";
  document.getElementById("ff_elem413").type = "range";
    onRangeChange();
oninput="DisplayChange(this.value)"
});
');

Honeypot
$this->execPieceByName('ff_InitLib');
if( ff_getSubmit('message_text') != '' )
{
     exit; 
}

Adds a slim select so I can style the select element
echo '
<script>
new SlimSelect({
  select: "select",
  showContent: "down"
})
</script>
';

I think perhaps one of the FF scripts are doing something
#238592
Moderators: ForumSupporttomeperica
Time to create page: 0.062 seconds

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Summer Sale!

50% discount on all of our extension subscription plans, templates and icon packs!

Get Your Subscription Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99 for just 49! (Summer Sale)

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here