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
DXP 7.1 Forms: Populating text field via datasource REST api
Gopal Prasad Satapathy, modified 5 Years ago.
Junior Member
Posts: 51
Join Date: 3/29/18
Recent Posts
Hello,
Can anyone help on how to configure text fields in form so that they can be populated from the data source?
Thanks,
Gopal
Can anyone help on how to configure text fields in form so that they can be populated from the data source?
Thanks,
Gopal
Hello,
You have to use data providers :
https://help.liferay.com/hc/en-us/articles/360017894712-Data-Providers
We have done this last year in 7.1 with no problem.
Tips : if you call an /api/jsonws webservice use "localhost:8080/api/jsonws" and not "www.mywebsite.com/api/jsonws".
The call is not done by the browser but by the server.
Eric.
You have to use data providers :
https://help.liferay.com/hc/en-us/articles/360017894712-Data-Providers
We have done this last year in 7.1 with no problem.
Tips : if you call an /api/jsonws webservice use "localhost:8080/api/jsonws" and not "www.mywebsite.com/api/jsonws".
The call is not done by the browser but by the server.
Eric.
Gopal Prasad Satapathy, modified 5 Years ago.
Junior Member
Posts: 51
Join Date: 3/29/18
Recent Posts
Hello Eric,
Thanks for your responsei am able to populate the data when i use the datasource output type as List and in the form the field as "Select from List". But when the datasource output type is Text and the form field is a "Text Field" it does not work.
Thanks,
Gopal
Thanks for your responsei am able to populate the data when i use the datasource output type as List and in the form the field as "Select from List". But when the datasource output type is Text and the form field is a "Text Field" it does not work.
Thanks,
Gopal
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™