TOPIC:

Select List zurücksetzen wenn Select List ausgeblendet wird! 9 months 3 weeks ago #268877

  • Karlheinz68's Avatar Topic Author
  • Karlheinz68
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Patron (Hero Patron)
  • Posts: 56
  • Thanks: 2
Hallo!

Wie kann der Eintrag einer Select List zurück gesetzt werden, wenn das Element (Select list) anschließend ausgeblendet wird.

Sollte beim neuerlichen Einblenden wieder auf Grundeinstellung sein.

lg

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

Select List zurücksetzen wenn Select List ausgeblendet wird! 9 months 3 weeks ago #268879

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

I hope we can continue in english.

You are using Visibility rules in form to hide/show select list?

UPDATE:
if this element is shown when section if on then in form->Advanced->Visibility rules put this:
if section sectionname  is off set nameofselectlist !empty
sectionname is name of section, and nameofselectlist is name of your select list (not title).

But if this element is showed based on value in another element then like this:
if element nameofselect list is off set nameofselectlist !empty

Let me know if you need more help

Regards,
Tihana

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

Last edit: Post by tihana.krivic.

Select List zurücksetzen wenn Select List ausgeblendet wird! 9 months 3 weeks ago #268885

  • Karlheinz68's Avatar Topic Author
  • Karlheinz68
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Patron (Hero Patron)
  • Posts: 56
  • Thanks: 2
Thx..

Yes, I work with visibility rules! --> that works.

is the problem perhaps that the entries in the select list come from the database?

The value from the select list should not be copied to the database when section "turn off"

this is my code in the select list
// ##########################################################################################

// Breezingforms - select list befüllen aus Datenbank - Code in list einfügen
// STTRV Verein aus Tabelle anmeldung_aaa_sttrv 

<?php
$user = JFactory::getUser();
$fcm = $user->activation;
JFactory::getDBO()->setQuery("SELECT * FROM anmeldung_aaa_sttrv ORDER BY sttrv ASC"); 
$rows = JFactory::getDBO()->loadObjectList();
$size = count($rows);
$listdata = "0;NEIN, mein Verein ist nicht Mitglied im STTRV!;\n";
for ($i = 0; $i < $size; $i++) {
   $listdata .= "0;{$rows[$i]->sttrv};{$rows[$i]->sttrv}\n";
}
$value = $listdata;
return $listdata;
?>

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

Select List zurücksetzen wenn Select List ausgeblendet wird! 9 months 3 weeks ago #268887

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

this is a little hard to prevent so, when section if off, just set this to empty value, as I posted in previous message.


Regards,
Tihana

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

Last edit: Post by tihana.krivic.

Select List zurücksetzen wenn Select List ausgeblendet wird! 9 months 3 weeks ago #268890

  • Karlheinz68's Avatar Topic Author
  • Karlheinz68
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Patron (Hero Patron)
  • Posts: 56
  • Thanks: 2
I try - dont work....



turn on section landesmeisterschaften if distanz is Klassiker
turn off section landesmeisterschaften if distanz is Sprint

if section landesmeisterschaften is off set sttrv !empty





(landesmeisterschaften = name section)
(sttrv = name select list)

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

Select List zurücksetzen wenn Select List ausgeblendet wird! 9 months 3 weeks ago #268892

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

then populating from database can be a problem, but could I check it directly on your page, and try to solve it

If yes, please send me login information, and backend link.

Use this tag:
[confidential]
[/confidential]
Please write name of form too

Regards,
Tihana

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

  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.043 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!