Select list from a proeviously given textfield

  • gtgt
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 33
  • Thank you received: 1

gtgt created the topic: Select list from a proeviously given textfield

Dear Crosstec&Users,

I have a quiz type form builder.
You can enter the 4 possible answers and after this you can select the correct one from a select-list.

My problem is that the possible answer options are loaded to the select list, but I cannot select any of them by cliking on it.

You can find it on frontpage:
misterycity.com/mistery-city-adventure-e...istery-city-textlist
Almost the bottom of the page "Helyes válasz" (=correct answer in local language)

If you have any idea what could be the problem, please let me know.
Thanks in advance.

Tamas



IDs of the answer options: option1, option2, option3, option4
ID of the answer: answer_01



The script:
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('titles', $test);
#232212
  • Posts: 1437
  • Karma: 48
  • Thank you received: 188

mihaela replied the topic: Select list from a proeviously given textfield

Hello,

The script that you've provided seems ok.
Where did you put the script?
Also, please attach the code in which you fill the $test variable.

Regards,

Mihaela
#232236
  • gtgt
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 33
  • Thank you received: 1

gtgt replied the topic: Select list from a proeviously given textfield

Script is in form pieces.

There are more scripts in the form. and not only in form pieces.

Maybe would be easier to create a user fof you and then you can see the whole script.

Can we contact directly?
my email i misterycity.tamas@gmail.com

Regards

Tamas
#232386
  • Posts: 1437
  • Karma: 48
  • Thank you received: 188

mihaela replied the topic: Select list from a proeviously given textfield

Hello,

You can send me backedn login info to mihaela.kobovac@crosstec.org so I can take a look at your form.
In the email please write the Name of the form that I should look at.

Regards,

Mihaela
#232401
  • Posts: 1437
  • Karma: 48
  • Thank you received: 188

mihaela replied the topic: Select list from a proeviously given textfield

Hello,

Thank you for the backend login info.
I'll take a look at your form and get back to you as soon as possible.

Regards,

Mihaela
#232434
  • Posts: 1437
  • Karma: 48
  • Thank you received: 188

mihaela replied the topic: Select list from a proeviously given textfield

Hello again,

Here is how to resolve the problem.

First, navigate to the Advanced properties of the answer_01 select list element and in Actionscript section set Type to None.

You have to turn off that existing script because it will reset the select list on every click, since you have Action set to Click, and that is why the selected value isn't saved.

Furthermore, you have to go to the Advanced properties of the option1 textfield element and in Actionscript section set Type to Custom and Action to Change.
In the code area below put the following script:
function ff_option1_action(element, action)
{
    var list = ff_getElementByName('answer_01');
for (var i = 1; i <= 4; i++){
  list.options[i] = new Option(ff_getElementByName('option'+i).value, ff_getElementByName('option'+i).value, true, false); 

}
} // ff_option1_action

You have to repeat the procedure for elements option2 option3 and option4. Make sure to adjust the option number in this line of code:
function ff_option1_action

Let me know whether after this your form works as you wanted.
If you have more questions, feel free to ask.

Regards,

Mihaela
#232438
Moderators: ForumSupporttomeperica
Time to create page: 0.067 seconds

New Support System

Dear Customers,

Users with active subscription have support priority which will be dona via ServiceDesk (My Account > Raise a ticket).
FREE Support topics will be answered when AND if there is time.

You can check support guidelines here : here

Regards,
Crosstec Team

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99€

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

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!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here