× Form Help

Adding Form Name to checkbox item

  • ALRA1
  • Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 133
  • Thank you received: 0

ALRA1 created the topic: Adding Form Name to checkbox item

I am reposting here as the last one I posted never got published

I am suddenly running into a problem with adding a form name to a value into a checkbox item as recommended at this post:

crosstec.org/en/forums/3-breezingforms-f...-in-form.html#112655

Up until recently, the code below worked fine in a check box value (0;Title 1;value1), where Title was replace by:
<?php return htmlentities(JFactory::getDocument()->getTitle());?>

as in 0;<?php return htmlentities(JFactory::getDocument()->getTitle());?>;Confirmed

I am running a site with Joomla 3.911 and PHP 7.2x - Could this be the problem?

What I want to achieve is the ability to add the form name as a value in a checkbox without actually manually adding it

Is there another way to code the file name as a value is this option is no longer possible?
#238631
  • Posts: 2785
  • Karma: 95
  • Thank you received: 376

mihaela replied the topic: Adding Form Name to checkbox item

Hello,

Can you please test whether the checkbox title gets filled in when you just Preview the form in backend.

I have tested this and it seems to be working fine for me.
I am using Joomla! 3.9.13 Stable, PHP/7.3.0, BreezingForms 1.9.0 Stable (build 931).

That is the code that should do what you want, fill the title with the Title of your form.
If this doesn't work for you, even though it should, you will have to enter it manually.

Regards,

Mihaela
#238638
Moderators: ForumSupporttomeperica
Time to create page: 0.056 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