TOPIC:

Polulate select-list element don't work EASYMODE 9 years 2 months ago #78470

  • Topic Author
  • hdelarosa2005
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 2
  • Thanks: 0
Hi ...

I put this code at Form Pieces in Before Form as you said in FAQS, but the select-field "txtPolMtra" is not populated, what else I need to do, I'm working in EASYMODE, thank's in advance

$this->execPieceByName('ff_InitLib');
$rows = ff_select("SELECT clave, campana FROM jos_tbl_campana");
$listdata = "1;Selecciona PolMtra;0\n";
for ($i = 0; $i < count($rows); $i++) {
$listdata .= "0;{$rows[$i]->clave};{$rows[$i]->campana}\n";
}
// function
function ff_setSelectList($name, $value) {
global $ff_processor;
for ($r = 0; $r < $ff_processor->rowcount; $r++) {
$row =& $ff_processor->rows[$r];
if ($row->name==$name)
$row->data2 = $value;
unset($row);
} // for
} // ff_setSelectList

ff_setSelectList('txtPolMtra', $listdata);

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

Re: Polulate select-list element don't work EASYMODE 9 years 2 months ago #78534

  • djhargrove's Avatar
  • djhargrove
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Official Support
  • Posts: 3419
  • Thanks: 222
did you change the coresponding element to the coreect one like:

$this->execPieceByName('ff_InitLib');
$rows = ff_select("SELECT clave, campana FROM jos_tbl_campana");
$listdata = "1;Selecciona PolMtra;0\n";
for ($i = 0; $i < count($rows); $i++) {
$listdata .= "0;{$rows[$i]->clave};{$rows[$i]->campana}\n";
}
// function
function ff_txtPolMtra($name, $value) {
global $ff_processor;
for ($r = 0; $r < $ff_processor->rowcount; $r++) {
$row =& $ff_processor->rows[$r];
if ($row->name==$name)
$row->data2 = $value;
unset($row);
} // for
} // ff_txtPolMtra

ff_txtPolMtra('txtPolMtra', $listdata);

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

Re: Polulate select-list element don't work EASYMODE 9 years 2 months ago #78544

  • Topic Author
  • hdelarosa2005
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 2
  • Thanks: 0
I did what you say, but the select-field "txtPolMtra" is not populated, I don't know if it's posible that you can see the form in my web site, this is it:

www.taxilandia.com/seguros/administrator

username: admin
password: huros1957

formname: PolSegAccYenf in page 1 select-field "txtPolMtra"

thank's in advace because this is my last issue with my client, I know that this is another kind of support but one year ago I asekd about this, and not was resolved...

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

  • Page:
  • 1
Time to create page: 0.045 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!