I'm working on a project in bubble.io, and I can't figure out how to copy one data type to another.
I have these data types, of which are all connected to each other in fields:
Data Type 1: Projects
- Text Field: Name
- Text Field: Phases
- Text Field: Artifacts
Data Type 2: Templates
- Text Field: Name
- Text Field: Phases
- Text Field: Artifacts
I have a few pages:
projects This lists the project names by Name. When a user clicks the Name it opens a project_details page.
project_details This contains repeating groups that list the project's phases and artifacts.
templates This lists the template names by Name. When a user clicks the Name it opens a template_details page.
template_details This contains repeating groups that list the template's phases and artifacts.
Here's the logic I'm trying to make happen:
- The user visits the template_details page of a specific template.
- The user clicks a button called "Use this Template"
- The name, phases and artifacts of this specific template is copied and moved to the list of projects.
- When a user clicks on the new project, it shows the copied phases and artifacts.
I've been able to create a project, and the Name carries over. But I'm not successful in carrying over the phases and artifacts with it.
[][2]