Welcome, Guest

TOPIC: passing select list TITLE NOT VALUE

passing select list TITLE NOT VALUE 1 year, 11 months ago #13884

hello,

i have managed to pass values of select lists and text fields to dynamic text fields and even calculating them between two pages.

My only problem is that i need to pass a TITLE value from a select list.

SELECT LIST

name: unidadescddvd
options:
1;Quantidade de cópias;
0;100;1
2;200;2
3;300;3

action script:

function ff_unidadescddvd_action(element,action) {
ff_euros1_action(element,action);
ff_titulounidades_action(element,action);
}


NOTE:
- the euros1 field retrieves the value os the select list called unidadescddvdv
- the titulounidades SHOUL RETRIVE THE TITLEs (example 100, 200 OR 300)

TEXT FIELD WITH VALUE:

name: euros1

function ff_euros1_action(element,action)
{
   ff_getElementByName('euros1').value = 0;

if (ff_getElementByName('unidadescddvd').value)
   {
      ff_getElementByName('euros1').value = Number(ff_getElementByName('euros1').value) +
Number(ff_getElementByName('unidadescddvd').value);
   }

}


TEXT FIELD THAT SHOULD CALL THE TITLE OF THE SELECTED VALUE:

name: titulounidades

function ff_titulounidades_action(element,action)
{
   ff_getElementByName('titulounidades').value = "";

if (ff_getElementByName('unidadescddvd').title)
   {
      ff_getElementByName('titulounidades').value = ff_getElementByName('unidadescddvd').title;
   }

}


you can see it in action at: www.now-disk.com/nowdisk/index.php?optio...forms&Itemid=210

thanks in advance

Mariana
  • web2web
  • OFFLINE
  • Junior Boarder
  • Posts: 27
  • Karma: 0

Re:passing select list TITLE NOT VALUE 1 year, 11 months ago #13913

Hi Mariana
You are further along then me, I'm still stuck trying to pass a select list value to a hidden field. I don't have an answer for you problem but I was wondering if you could walk me through getting a select list value to populate a text field.

I would be for ever in your debt
Thanks Steve
  • celtaweb
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
  • Karma: 0

Re:passing select list TITLE NOT VALUE 1 year, 11 months ago #13914

Hi Steve,

Did you see this KnowledgeBase article?

www.crosstec.de/support/index.php?pid=kn...wentclient&id=52
  • terrywmu
  • OFFLINE
  • Administrator
  • Posts: 510
  • Karma: 8

Re:passing select list TITLE NOT VALUE 1 year, 11 months ago #13922

Hey Terry
Thanks for taking a interest, I have looked at that explanation before but lets say I have a static select list at the top of a form and when someone selects one of the options it fills in a text box directly below it, any chance of a walk through on that basic premise. I assume I need to create a variable to hold that value and then pass it to the text box but I would really appreciate a step by step.

Thanks for your time
Steve
  • celtaweb
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
  • Karma: 0

Re:passing select list TITLE NOT VALUE 1 year, 11 months ago #13929

Hello steve,

of course i can help you with this but let me give you a full reply tomorrow mornig (after my brain restarts lol) ok?

mariana
  • web2web
  • OFFLINE
  • Junior Boarder
  • Posts: 27
  • Karma: 0

Re:passing select list TITLE NOT VALUE 1 year, 11 months ago #13938

Hey Mariana

I'd really appreciate a walk through on a basic static select list populating text fields

Thanks Steve
  • celtaweb
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
  • Karma: 0
Last Edit: 1 year, 11 months ago by celtaweb.
Moderators: TheMuffinMan, ForumSupport
Time to create page: 1.67 seconds

Facebook Discount - 40% Off!

Fans of our Facebook page here are entitled to get a 1-year-subscription for the price of a 6-months!

Steps to take:

  • Become a fan on Facebook (Like) here
  • Purchase a 6-months-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of your like and we'll upgrade to the 1-year-subscription

Joomla!® Forms Discount - 40% Off!

Already purchased a forms extension from a different vendor but your requirements changed and now you need a forms extension that is capable of more than just the standards? We help you to keep the costs for a change under control: Get a 40% discount on our professional membership plan! -- meaning timely unlimited access to all current and future commercial extensions, breezingforms themes & apps and Joomla!® templates at crosstec.de, including 1 year of support -- without any website limitations -- Just prove that you previously purchased another forms extension for Joomla!® from a different vendor and you are qualified.

Steps to take:

  • Purchase a 1-year-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of the purchase for the other form vendor and we'll upgrade to the professional-subscription

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany

Imprint