Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Single Select Field in Form
Hello,
We want to have a single select field in the form to populate the countries.
We want the Country names to be displayed in the drop down, and country code to be returned as a part of form submit data.
While this looked possible by using data provider and "Displayed JSON Attribute" and "Stored JSON Attribute" in older version, we are not able to figure out a way to do this in Liferay 7.1 yet.
Any pointers please?
Regards,
Manish.
Nagendra Kumar Busam, modified 6 Years ago.
Liferay Master
Posts: 678
Join Date: 7/7/09
Recent Posts
Do you have any links/blogs for old version example, that way somebody
can see how it can be done OR might be already there in source somewhere.
https://dev.liferay.com/hu/discover/portal/-/knowledge_base/7-0/creating-advanced-forms
This link has the details in the ‘Adding and configuring Data Provider’ section.