Can this create a new webform for a user from a template?

Created on 4 April 2023, over 1 year ago
Updated 31 July 2023, over 1 year ago

Problem/Motivation

Here's what I need:

1) New user creates account.
2) Pays Commerce and gets assigned a certain role.
3) Gets a slightly personalized Webform created for them from a template. Only this new person should get access.

I didn't see this option in the menus but maybe I missed it. If anyone has any suggestions for how to accomplish this, let me know. THank you in advance.

✨ Feature request
Status

Postponed: needs info

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bogdog400

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @bogdog400
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    Sorry @bogdog400 for this very late response, I must have missed this issue completely.

    To your question:

    1) New user creates account.

    This is part of Drupal, I guess there is no extra action required.

    2) Pays Commerce and gets assigned a certain role.

    This can be done with commerce already, or is there anything missing?

    3) Gets a slightly personalized Webform created for them from a template. Only this new person should get access.

    That's interesting. To find a way to achieve this, I wonder how you would go about this when you did that manually. Are you planning to create a webform for each user, where each of those webforms then only ever gets 1 submission? To what degree do you personalize those forms?

  • πŸ‡ΊπŸ‡ΈUnited States bogdog400

    At first I'm just trying to make each webform a copy of the template with no customization or personalization. Obviously the user can do this manually after the fact, but I would like them to be spared the job of simply duplicating the template.

  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    There are 2 actions Config: read and Config: write in the eca_config submodule, which allow you to read a config entity, make some modifications to it and then save it under a different name.

  • πŸ‡ΊπŸ‡ΈUnited States bogdog400

    Thanks. I'll check them out.

  • Status changed to Postponed: needs info over 1 year ago
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen
Production build 0.71.5 2024