Forums

generate link dynamic from radio buttons

mdma 08 Sep, 2015
Hello,
i have 4 events from radio button selection and 4 languages cases after that hould generate a link from selected data
i know how to set up this with cascading events and onSubmit but:

how can i hook into radio buttons events to generate link in realtime/live javascript? cant find example in forum/faq
mdma 08 Sep, 2015
in php:
<?php
if ( isset($form->data['radio']) && $form->data['radio'] == 'value A' ) {..


in js?
val?
mdma 08 Sep, 2015
sorry for asking unclear code question i ll try around in detail myself.
but if you know some situation this kind of in faq/forum or some other idea it would be also helpful.
GreyHead 08 Sep, 2015
Hi mdma,

Do you just want to create a link that is visible in the form? Can you give an example - that makes it easier to give a useful reply.

Bob
mdma 08 Sep, 2015
in a form when user selects a value from radiofield a link is shown immideatly not after submit.

1.)radio field value a=a,b=b,c=c

1a)if site language de-DE
1b)a is selected show a link predefined(!) to fe. valueadomain.de
what i dont ki dont know how here i how to call language string in javascript
2.)there a parent show textfield event in radiofield d=d where the user can put a custom url
2a.)the link get actualized immideatly with the input of the txtfield
here i dont know how to update immideatly the link
mdma 08 Sep, 2015
1b what i dont know herei how i call language tring in javascript
This topic is locked and no more replies can be posted.