Form Help

TOPIC:

Adding Form Name to checkbox item 7 months 1 week ago #238631

  • Topic Author
  • ALRA1
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 141
  • Thanks: 0
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?

Please Log in or Create an account to join the conversation.

Adding Form Name to checkbox item 7 months 1 week ago #238638

  • mihaela
  • Offline
  • Developer
  • Developer
  • Posts: 3128
  • Karma: 105
  • Thanks: 413
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

Please Log in or Create an account to join the conversation.

Adding Form Name to checkbox item 6 months 1 week ago #238950

  • Topic Author
  • ALRA1
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 141
  • Thanks: 0
I discovered the issue was the use of the character & in the title. I guess the getTitle()) was not reading the character as plain text.

Any ideas id there is a workaround when titles contain special characters?

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.045 seconds

Summer Sale!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

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!