Hello,
I have Joomla menu with items:
Loan_type1, Loan_type2, Loan_type3
In the page i have dropdown list field on the form (the thirst page of the form inside module):
[list]Loan_type1
Loan_type2
Loan_type3[/list]
If the user selects "Loan_type2" from the menu, then "Loan_type2" should be automatically selected from the dropdown list. How would it be possible to do?
Jaak
I have Joomla menu with items:
Loan_type1, Loan_type2, Loan_type3
In the page i have dropdown list field on the form (the thirst page of the form inside module):
[list]Loan_type1
Loan_type2
Loan_type3[/list]
If the user selects "Loan_type2" from the menu, then "Loan_type2" should be automatically selected from the dropdown list. How would it be possible to do?
Jaak
This is the easiest way i know...
http://mywebsite.com/Car_Loans?Loan_type2=carloans
http://mywebsite.com/Car_Loans?Loan_type2=carloans
Hi Jaak,
Presumably the ItemIds in the Menu URLs are different so you could use those to set the default value.
Bob
Presumably the ItemIds in the Menu URLs are different so you could use those to set the default value.
Bob
Hello,
Sorry if noob question.
I understand what I need to do, but how I can in Joomla to this variable to menu item.
Jaak
Sorry if noob question.
I understand what I need to do, but how I can in Joomla to this variable to menu item.
Jaak
Hi Jaak,
ChronoForms adds the URL variables to the $form->data array it uses - add a Debugger action temporarily to the On Load event of your form to see what values are there. You can set a variable either as esl suggests, or using the ItemId set by the menu. In the second case you will need some Custom PHP to link the ItemId to the Loan Type
Bob
ChronoForms adds the URL variables to the $form->data array it uses - add a Debugger action temporarily to the On Load event of your form to see what values are there. You can set a variable either as esl suggests, or using the ItemId set by the menu. In the second case you will need some Custom PHP to link the ItemId to the Loan Type
Bob
Hello,
Exactly, my question was how it is possible to add get variable to Joomla menu. I manually probing to add needed variable to menu item and its working. But i can't found the way how to add variable to Joomla menu.
Jaak
Exactly, my question was how it is possible to add get variable to Joomla menu. I manually probing to add needed variable to menu item and its working. But i can't found the way how to add variable to Joomla menu.
Jaak
This topic is locked and no more replies can be posted.