adopted-ember-addons / adopted-ember-addons/ember-changeset-validations

Update an already existing model

Open
#155 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
215
Forks
98
PR merge metrics
No merged PRs in 30d

Description

Hi @poteto & others,

I am trying to have more than one validated-form in the page, for the same model, taking a changeset.
Different fields will be applicable for each form. But certain fields in one form, is a computed property of another form (the computed property is given in the model itself, so when we save / get, field is computed and received).

Since they are different forms, and each form creates a new model, the model is not updating the other form. Is there any way in which this can be achieved?

Please find this [Twiddle](https://ember-twiddle.com/b9f8fea705f4afbd5e4622040e7efc17?openFiles=templates.application.hbs%2C) for a similar demo.

Many thanks in advance!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.