Hi everyone,
I’m currently working with NERM attributes and forms and I’m facing a specific requirement that I hope someone can help with.
I would like to define an attribute in a form that is readonly – meaning it should be visible to the user but not editable. Ideally, I’d also like to dynamically prepopulate this field based on the values of other attributes in the form (for example, based on a selected value in a dropdown).
So far, I haven’t found a clear way to achieve this in the documentation or UI. Has anyone here dealt with something similar or knows how this can be implemented?
The only way to display attributes as read only, is within your page, put a read only form with the attributes you want to be displayed.
However, dynamically updating those read only attributes based on a separate selection elsewhere in the form is not possible. You would have to show in a follow up request/review form step.
Forms on a page are either readonly or readwrite – but you can’t mix that within the same form. You’ll need to have a different form for the readonly attribute on the page. You can have an attribute option drive other forms to appear, but you can’t filter the contents based on the other. You’d need to have each option for the driving attribute make a different form w/attr & options appear.
The profile based attributes allow filtering of information based on other information, but you aren’t able to drive forms appearing from those.
So it’ll depend on what the use-case is as to which route might work or a combination of those concepts.