Adaptive Form Prefill Service Request Paramter

Tsholofelo_Nthu

11-05-2018

Adaptive form request URL:

localhost:4502/content/myform.html?foo=bar

Prefill service:

@Component

public class FormPrefillService implements DataXMLProvider { ... }

From FormPrefillService how can I access the request parameter "foo" from the request URL?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

mohamedn4455443

16-12-2019

 

Use this line to get parameter after "testxsd/

"http://localhost:4502/editor.html/content/forms/af/mandatoryxsd.html?wcmmode=disabled&dataRef=servic... 

String Param = dataXmlOptions.getDataRef();

Result: Param = param Data   

 

Note: "testxsd" the service name that you defined in FormPrefillService  class

for example: 

public String getServiceName() {
return testxsd;
}