Expand my Community achievements bar.

How to disable this (aemform.af.prefilldata) call during form load

Avatar

Level 4

How to disable this (aemform.af.prefilldata) call during form load

aravindS_0-1693909464171.png

Thanks in advance

I tried this as well

aravindS_0-1693923789008.png

aravindS_1-1693923872348.png

 

it is not saving, this field doesn't have value for None option.

2 Replies

Avatar

Community Advisor

@aravindS 

1) Go to guide container component : fd/af/components/guideContainer

2)/libs/fd/af/components/guideContainer/cq:dialog/content/items/accordion/items/basic/items/prefill_service/datasource

3) dropdown is using the datasource : fd/af/components/commons/datasources/propertyprovider

3) GO TO fd/af/components/commons/datasources/propertyprovider -> in jsp file 

 

Check if there is any customization done in your code as there are some other options displayed. 

You can follow like , how other 2 oprions has the values same you can customize for the None if its not working.

} else if (PREFILL_SERVICE_PROVIDER.equals(type)) {
jsonArrResponse = guidePropertyProviderUtils.queryPrefillServiceProviders();
for (int i = 0; i < jsonArrResponse.length(); i++) {
JSONObject objectArr = jsonArrResponse.getJSONObject(i);
if(StringUtils.isEmpty(objectArr.get("text").toString()) && StringUtils.isEmpty(objectArr.get("value").toString())){
objectArr.put("text", i18n.get("None"));
}

}

  

Thanks,
Siva

Avatar

Level 4

Hi SivaKumar,

aravindS_0-1694155603180.png

Above image is that jsp file.

And if you see that is a greyed out area, as per adobe this part of code is not suggestable to change.