Expand my Community achievements bar.

SOLVED

Adaptive Form Prefill Service Request Paramter

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 4

 

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;
}

 

View solution in original post

2 Replies

Avatar

Correct answer by
Level 4

 

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;
}