Forums

Radios Group with reserved option

touretteroma 15 Jan, 2019
Dear all,
is it possible to define a RadiosGroup having, for instance, 2 public options and 1 option for registered users only?
I wan't assign permissions to the RadiosGroup object but to its options
Any suggestion?
Regards
healyhatman 15 Jan, 2019
Turn on permissions on your form and have two PHP blocks, one with public permissions and one with registered permissions, in that order.

In the first one build your options (a value=>label array) and return it. In the second one, use $this->get("firstphpblockname") and add the registered options to the array.
touretteroma 28 Apr, 2019
Dear all,
It seems permissions have been removed from the latest version.
I can't find permissions on php section anymore.
Is it a bug?
Regards
healyhatman 28 Apr, 2019
They need to be turned on, under the main Settings tab
touretteroma 28 Apr, 2019
Permissions are at "event" level.
In the previous versions, permissions were at "PHP block" level.

On 15 january you told me to put 2 php blocks, one with public, one with registered permissions.

I need permissions at PHP block level.
Have you removed them?
Regards
healyhatman 28 Apr, 2019
I'm not the developer, I didn't remove anything. But the permissions now need to be activated under the main SETTINGS tab.
Max_admin 28 Apr, 2019
Answer
Form > settings > Enable Actions permissions > SAVE (green)

Then you can find it!

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.