Hi,
I make a new form, it have a dropdown which you can chose a product, if selection change this dropdown must another element value will be change ( amount).
I make a event in dropdown element settings dialog:
on = Regular attender function amount myevent ( see screen-shot in attacment)
My question is : I must define "myevent" in php code, can you point me out which php file pleas?
Kind Regards,
Hakan Elgin
I make a new form, it have a dropdown which you can chose a product, if selection change this dropdown must another element value will be change ( amount).
I make a event in dropdown element settings dialog:
on = Regular attender function amount myevent ( see screen-shot in attacment)
My question is : I must define "myevent" in php code, can you point me out which php file pleas?
Kind Regards,
Hakan Elgin
Hi Hakan,
There is no screen-shot attached - you have to click Upload before you submit the post.
I don't understand your question clearly enough to give you an answer yet. What calculation do you need to do and what idata does it use?
Bob
There is no screen-shot attached - you have to click Upload before you submit the post.
I don't understand your question clearly enough to give you an answer yet. What calculation do you need to do and what idata does it use?
Bob
Sorry about it,
Hi,
Sorry about my english, may be speking by example is much easy.
this my form
https://heritagetourismhospitality.org/index.php?option=com_chronoforms5&chronoform=registration_form
if you change value of "Attendee Category:" field than value of "Amount" element must be change
I hoop this is this clear?
Sorry about my english, may be speking by example is much easy.
this my form
https://heritagetourismhospitality.org/index.php?option=com_chronoforms5&chronoform=registration_form
if you change value of "Attendee Category:" field than value of "Amount" element must be change
I hoop this is this clear?
HI Hakan,
I'm not clear what you are trying to show here? You have an unusual set of options for the attendee category drop-down e.g.
You do not need Ajax here - that is only required if you need to get new information from the server. In this case you could do this by adding some custom JavaScript to do the calculation when the drop-down changes. In this case it's probably simplest to hard-code the amounts into the JavaScript.
Bob
I'm not clear what you are trying to show here? You have an unusual set of options for the attendee category drop-down e.g.
<option value="Regular attendee">Regular attendee</option>
<option value="Speaker presenting scientific paper">250</option> I think that you might mean the second option to show 'Speaker presenting scientific paper' rather than '250'.
You do not need Ajax here - that is only required if you need to get new information from the server. In this case you could do this by adding some custom JavaScript to do the calculation when the drop-down changes. In this case it's probably simplest to hard-code the amounts into the JavaScript.
Bob
Hi,
Sure I know how to do this with jquery or normal javascript, php, ajax but I am just try to use chroneform and try to understand how this tool work.
Actual what I am to doe is where simple:
if selection of "Attendee category" combobox change, thus selected, than value of "Amount" must be change.
can I use "event" of should i write custom stuff?
thank you for you patience
Kind Regards,
Hakan
Sure I know how to do this with jquery or normal javascript, php, ajax but I am just try to use chroneform and try to understand how this tool work.
Actual what I am to doe is where simple:
if selection of "Attendee category" combobox change, thus selected, than value of "Amount" must be change.
can I use "event" of should i write custom stuff?
thank you for you patience
Kind Regards,
Hakan
Hi Guys,
I don't want to take your time, I solve my problem in regular way: just javascript function in combination jquer.
Thank you,
Kinde Regards
Hakan
I don't want to take your time, I solve my problem in regular way: just javascript function in combination jquer.
Thank you,
Kinde Regards
Hakan
This topic is locked and no more replies can be posted.
