I am working on a patient/doctor kind of project where by the patient fills a questionnaire and then the doctor provides a prescription.

I have used webform module to create the questionnaire which the patients would fill, and i have created a custom content type for the prescription.

I need to be able to relate the submission Id of the questionnaire to the prescription but I am not sure how to do it.

Please note that a patient can fill various questionnaires so it is quite important that I use the submission id as it seem as the only unique id available.

I have tried the node reference module but that only gives me access to the questionnaire not submission id of the questionnaire.

1 Answer 1


You're right - you can't use references with the webform submissions, because webform submissions are stored in their own special way - they're not actually proper Drupal entities, so they are not properly exposed to other modules expecting to interact with entities.

One thing you can try if you're not too far along in your project is to use the alternative Entityform project. That should expose form submissions to be referenced.

Let us know if it works! I haven't used the module myself, I've just heard of it.

  • It works perfectly. Thank you so much! I shout probably add that i needed the entity reference module as well
    – gables20
    Jan 7, 2014 at 12:05
  • Cool! I'm so glad it worked! Jan 7, 2014 at 14:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.