Hi,
so I have started working with Cobalt for a few hours and I have reached an issue where I have a boolean field, which want to be editable and submitable only by admins, but viewable by registered.
I have set the access fields as follows:
- View Access - Public
- Submission Access - Special
- Edit Access - Special
Expected behavior (for a registered user):
Label is displayed. Boolean buttons are displayed, but set as readonly and not being accepted, even if the form is tampered with.
Actual behavior (for a registered user):
Label is displayed. Boolean buttons are not displayed. Instead the default denial-message is displayed in their place, saying "You cannot edit this field".
From the code at components/com_cobalt/views/form/view.html.php I can see that this is the way it works, but it does seem weird.
Hence the title question...
Hi,
so I have started working with Cobalt for a few hours and I have reached an issue where I have a boolean field, which want to be editable and submitable only by admins, but viewable by registered.
I have set the access fields as follows:
Expected behavior (for a registered user):
Label is displayed. Boolean buttons are displayed, but set as readonly and not being accepted, even if the form is tampered with.
Actual behavior (for a registered user):
Label is displayed. Boolean buttons are not displayed. Instead the default denial-message is displayed in their place, saying "You cannot edit this field".
From the code at components/com_cobalt/views/form/view.html.php I can see that this is the way it works, but it does seem weird.
Hence the title question...