Forums

Need help with specific action on chronoforms v4

Laimutis 28 May, 2012
Hi,

I am sorry, but I need some directions for specific actions.
I have created form with chronoforms v4 on Joomla 2.5. This form contains only three dropdown lists, and submit button:
1. Device - so customer can choose device.
2. Repair - to choose repair required.
3. Service - to choose required service.
followed by Submit button.
I would like to create a following Action: after form submission, i would like to display an appropriate price depending on a customer choice earlier, as different repairs on different devices varies on prices. Or after submission, depending on choices made, to redirect customer to the relevant product listings in my shop (HikaShop component).
Please can anyone help me with this, or at least show me the right directions to get these results.
Thank you.
GreyHead 29 May, 2012
Hi Laimutis ,

You can use PHP in a Custom Code action to calculate the price. The data submitted is all held in the $form->data array.

You can also use PHP in the same way to redirect users; or you can use my custom Event Switcher [GH] action - tha tmy be simpler but still requires some coding. It depends on your specific needs and skills which is the better method.

Bob
Laimutis 29 May, 2012
Hi GreyHead,

Thanks for a quick reply, and thanks for CF, it is great.
I am not great with PHP, but I am learning it at the moment.
Is there any tutorial which I could use it at the moment on Event Switcher action ? I am really keen to include this form on my website, otherwise I am gonna have to hold on this, until i will gain more knowledge on PHP.
Thanks again, and all the best.

Laimutis
GreyHead 31 May, 2012
Hi Laimutis,

There isn't any special tutorial for the Event Switcher. There's a code example here if that helps.

Bob
This topic is locked and no more replies can be posted.