Try our conversational search powered by Generative AI!

Improve Autofill API (Beta)

Found in

EPiServer.Forms 4.1.0

Fixed in

EPiServer.Forms 4.4.1

(Or a related package)

Created

Nov 16, 2016

Updated

Feb 21, 2017

Area

Core

State

Closed, Acceptance tests pass


Description

The current Forms Autofill API mechanism assumes that it does not need to know about which Forms/FormElements are being filled. It only knows about the remote-system-side.

DataElementBlockBase.GetAutofillValues()

Call _autofillService.Service.GetSuggestedValues(selectedDatasource, mappingKeys);

Then call

AutofillProvider.GetSuggestedValues(datasource, remoteFieldInfos))

The DataElementBlockBase knows about its OwnerForm, but does not provide that information to Autofill.

As a result of this story, more context is given to the Provider.

  • which Form
  • current Element
  • its ElementInfo
  • httpRequest
  • RemoteField, Datasource (which is mapped; this already existed)

Note: Autofill API is still in internal beta mode. So, Episerver did not increase the version number as we normally would when introducing a breaking change.