Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inserttag value does not update if used as standard value for field #80

Open
Shoekrates opened this issue Mar 4, 2024 · 1 comment
Open

Comments

@Shoekrates
Copy link

Hi, related to #79 I have encountered a strange behaviour while testing.
This could be a bug.

On page 1 I have a checkbox field (field_a) with radio button values yes/no.

On page 2 I have an explanation element that just prints out the value of field_a:
Field Value: {{mp_forms::ID::field_value::field_a}} (ID is the form ID)
That updates correctly if I go back to page 1, change field_a and return to page 2.

On page 2 I also have a text field (field_b) with a standard value of {{mp_forms::ID::field_value::field_a}} defined with the standard backend field in contao.
However the standard value of field_b doesn't get updated stepping back, change field_a and return to page 2.
If I use an individual template for the text field where the insert tag is hard coded into the value attribute of the text field the update of the value works as expected and mirrors the update from the explanation field.

Are insert tags used as standard values of form fields handled differently to being used in templates or explanation fields?

@Toflar
Copy link
Member

Toflar commented Mar 4, 2024

Probably duplicate of #74?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants