- rakeshranjan01Asked on December 13, 2015 at 02:05 AM
public String registerDoctor( @Context HttpServletRequest request, @FormParam("mobileNumber") String mobileNumber)
logger.info("Regdoc invoked, Mob Num= "+mobileNumber); return mobileNumber; }
We are having a Java REST API in the backend to capture form submissions. However we are unable to capture form fields (mobileNumber as test field). Need help
Rakesh RanjanPage URL:
- JotForm SupportMikeAnswered on December 13, 2015 at 07:52 AM
Thank you for contacting us.
Since you use a webhook instead of standard HTTP Post thank you redirect, the field names may be different. You can try to debug the webhook wth a http://requestb.in/ service. It looks like that the field name should be q15_mobileNumber in your case.
Send Post Data is not required for our webhooks so you may consider switching it from Yes to No.
If you need any further assistance, please let us know.
- rakeshranjan01Answered on December 14, 2015 at 01:59 AM
Thanks for sharing with me the instructions however I am still not able to fetch form field data in the REST service. Below is the code of REST webservice which does get invoked but is unable to fetch form data fields
public String registerDoctor(@Context HttpServletRequest request,
@FormParam("q15_mobileNumber") String mobileNumber)
logger.info("Regdoc invoked, Mob Num= "+mobileNumber);
Value of mobile number still remains null. I am not sure if I missing something.
- JotForm SupportMikeAnswered on December 14, 2015 at 09:29 AM
Sorry, but I am not a programmer to debug your code. You may consider sending an email to email@example.com to see if some of our developers can take a look into this.
We also have some webhook code samples in PHP which can be found on the following article, so you can check them out to get the general idea.