Message Boards

Liferay Forms Autofill dosent work with draft

thumbnail
saleem khan, modified 4 Years ago.

Liferay Forms Autofill dosent work with draft

Junior Member Posts: 71 Join Date: 11/16/13 Recent Posts
Hi Guys,

Version:  Liferay 7.1.2 Ga3
Summary: 
When the Auto Save is enabled Liferay forms saves the current form for the user. When the user comes back to the same page the form gets filled with previous values from the saved draft and autofill fields doesnt repopulate the data from the draft.

Detailed Explanation:
I have a form which has two fields consider Country and Regions. I have configured the field Country to use the Data Provider  and have configured the regions fields to use Autofill and have added a rule that state when country is not empty then Autofill from Data Provider. 
So now when the user is filling the form and its get saved as draft by auto save. Where the user comes back to the form it pre-populates all the data from the draft except the autofill fields. This works only when you go and click on anywhere near the Country(trigger for autofill) field it immediately get populated from the draft data. 

When I inspect the form during the form load I find this requested of data providers being canceled which are triggered for the field which have autfill configured. Please refer the screenshot below

This issue happens only during the form load. Next what i did was used the same request and tried resending  the request and it worked and I got the response from the server. But I am unable to understand why the requests are being canceled.Does anyone know whats happening here ?

Thanks & Regards 
Saleem Khan