Adaptive Form Prefill Service Request Paramter | Community
Skip to main content
May 11, 2018
Solved

Adaptive Form Prefill Service Request Paramter

  • May 11, 2018
  • 2 replies
  • 1836 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by mohamedn4455443

 

Use this line to get parameter after "testxsd/

"http://localhost:4502/editor.html/content/forms/af/mandatoryxsd.html?wcmmode=disabled&dataRef=service://testxsd/param Data" 

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

 

2 replies

mohamedn4455443
November 14, 2019

Have you found a solution?

mohamedn4455443
mohamedn4455443Accepted solution
December 16, 2019

 

Use this line to get parameter after "testxsd/

"http://localhost:4502/editor.html/content/forms/af/mandatoryxsd.html?wcmmode=disabled&dataRef=service://testxsd/param Data" 

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