Element field mapping - display only option #454
anchovy
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Issue
We've got some entry fields that we want to display on a form, but don't want these to be changed/pushed back into the integration(/element) on update.For example, we've got 2x fields
Then - in the form we'd have a conditional that if canComment = true, display the notifyOnComment field allowing the user to toggle this on/off.
Issue is - we can only get the form canComment value by mapping it to the craft users canComment field - meaning they can toggle this on/off.
Solution
In the Element Connections field mapping table add another column 'view only' with a radio field per row defaulted to false. If changed to 'true' then when the form is processed this field & value would not passed to the integration, but the original value should still be available in the field values for email templates etc.NB - I know we could use a hidden field etc, but this could still be modified by a user/bot, so we need to ensure that the submitted field value is totally ignored and dropped from the data sent to the integration.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions