Please Log in or Create an account to join the conversation.
Then your only option is read only as CB Conditional can not currently disable the reset functionality on a per field basis (this is planned).With the Conditional, since I have reset active on settings CB Conditional, the fields would not be visible, but also lose the stored data.
Instead I just want that you can not change the data but which must remain stored on DB.
The [cb:userfield field="FIELD_NAME" /] usage checks access permissions and conditions. So if the user can't see the field on their profile then that substitution won't output anything.I tried this but it does not work
Please Log in or Create an account to join the conversation.
The [cb:userfield field="FIELD_NAME" /] usage checks access permissions and conditions. So if the user can't see the field on their profile then that substitution won't output anything.
Please Log in or Create an account to join the conversation.
No. A read only field does not submit to the POST. CB will not know it's read only, because you didn't set it read only in CB > Field Management. This means it won't have a value in POST and will null the value for storage. Your only option is as follows as again it is entirely visual as it has no PHP side checks to enforce this. There is no "edit once" field functionality, sorry.Alternatively I would like to know if I can use or create a class to make read-only field (always to be included in an if statement)
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Should work fine assuming the field displays on profile fine for the user editing their profile.So this may not work?
Because [cb:userfield field="FIELD_NAME" /] checks access and display permissions. If the field isn't set to display on profile then that substitution won't display anything. If it's conditioned away on profile then it also won't display, etc.. [FIELD_NAME] is a raw value from the user object. It does not check permissions.Works for me to use the hidden field, with what you suggested, but why does not work if call with?
Please Log in or Create an account to join the conversation.