Welcome, Guest

passing select list TITLE NOT VALUE
(1 viewing) (1) Guest

TOPIC: passing select list TITLE NOT VALUE

passing select list TITLE NOT VALUE 1 year, 8 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
  • Fresh Boarder
  • Posts: 17
  • Karma: 0

Re:passing select list TITLE NOT VALUE 1 year, 8 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, 8 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: 527
  • Karma: 8

Re:passing select list TITLE NOT VALUE 1 year, 8 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, 8 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
  • Fresh Boarder
  • Posts: 17
  • Karma: 0

Re:passing select list TITLE NOT VALUE 1 year, 8 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, 7 months ago by celtaweb.
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.39 seconds

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany