I have two custom data types: Organizations and Member Profiles. Members are linked to a parent Organization by a one-to-many relationship. (one Org->many embers)
There is a taxonomy called "Member Type" attached to both Orgs and Members.
In the Add Member / Edit Member forms, I added the Member Type taxonomy as a form field, and set the value to match the parent Org's. I do not want the user to be able to change this, but I do need the data in the form, so new members created will always have the same Member Type as their parent Org.
This almost does what I need:
[cred_field field='member-types' force_type='taxonomy' output='bootstrap' display='select' single_select='true' value='[wpv-post-taxonomy type="member-types" item="@organization-member-profile.parent"]' ]
It displays the available Member Types and assigns the correct value. Except I want this field displayed but non-changeable. I tried adding a readonly='true' but I see in the documentation that does not work for select fields.
Thank you for the reply. I suspected that'd be the only way to do it. Also, TIL that a <select> can't have a readonly attribute. I ended up using checkboxes instead and using a jQ onclick function. The link you sent was very helpful. Thank you and the entire toolset support team for always being so responsive and constructive!
My issue is resolved now. Thank you!
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.