This topic contains 2 replies, has 2 voices, and was last updated by thinh2010 7 years, 7 months ago.
- Topic
Hi everybody,
I want to create a Form Type called ‘MyOwnMoneyType’ to display 2 fields: 1 text field for money value and 1 select field for currency. I want to display it in 1 row, so that I dont create 2 normal field (money and currency)
So my code will be like that:
1$builder->add('cost', 'my_own_money');I already created a new form type, add 2 these fields in BuildForm, but I dont know how to parse the name of the field (in my case is ‘cost’) to the text field inside it.
123456789101112$builder->add('cost', 'oro_money') //I dont know how to parse dynamic field name here->add('currency','choice',array('choices' => array('USD' => 'USD','VND' => 'VND')));Anyone have exp for this case?
Thanks,
The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.