Unable to reverse route to controller action

Hi Community

I am learning play framework with scala and have setup environment with following configuration:

  1. JDK 13
  2. Scala v2.12.2
  3. Intellij Idea Ultimate.
  4. Intellij inbuilt sbt

Following documentation on Form Handling, I’ve made FormController to handle forms and corresponding userdata as its view.

On form submit getUserInfo() action from FormController should be called. But intellij is unable to reverse route the request to getUserInfo(), hence this function is red with build error:

Error:(28, 73) value getUserInfo is not a member of controllers.ReverseFormController

At this line:

@helper.form(action = routes.FormController.getUserInfo()) {

Please help me fix this issue.

Thanks and Regards