TOPIC:

List state in Conten template? 2 months 1 week ago #245061

  • Topic Author
  • jvkeller
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 111
  • Thanks: 0
I guess brain fart time... where do I find the form_id?

ff_adoptablepets?

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

List state in Conten template? 2 months 1 week ago #245070

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10063
  • Karma: 167
  • Thanks: 799
Hi,

she means this from her code:
$query = "SELECT state_id from #__contentbuilder_list_records where record_id = '$record_id' AND form_id = 'adoptablepets'";

She wants you to replace "adoptablepets" with the number of the view (the id).

Regards,
Markus

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

List state in Conten template? 2 months 1 week ago #245074

  • Topic Author
  • jvkeller
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 111
  • Thanks: 0
In that case, the ID of the view is 6. I put 6 in the single quotes and still nothing.

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

List state in Conten template? 2 months 6 days ago #245092

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 1261
  • Karma: 3
  • Thanks: 110
Hi,

Sorry but this is record id. Form id you will find in Manage forms.

Regards,
Tihana

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

List state in Conten template? 2 months 6 days ago #245151

  • Topic Author
  • jvkeller
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 111
  • Thanks: 0
I noticed that and tried it with the form ID too and still nothing. :(
Attachments:

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

List state in Conten template? 2 months 6 days ago #245159

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 1261
  • Karma: 3
  • Thanks: 110
Hi,
$db =& JFactory::getDBO();

$result = '';

$query = "SELECT state_id from #__contentbuilder_list_records where record_id = '$record_id' AND form_id = '2'";

$db->setQuery($query);

$result = $db->loadResult();

$query = "SELECT title from #__contentbuilder_list_states where id = '$result'";
$db->setQuery($query);
$result2 = $db->loadResult();

$items["ITEMNAME"]["value"] = $result2;

Did you change ITEMNAME with name in which you want to store the state?

Regards,
Tihana

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

Time to create page: 0.053 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

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!