Radios Group with reserved option

How to create a ChronoForms radio group with options for different user types.

Overview

The user needed to display certain radio options only to registered users, but permissions were not visible in the PHP action blocks.
Enable action permissions globally in the form's main Settings tab. Then, create separate PHP blocks with the appropriate permissions set to build and combine the option arrays.

Answered
ChronoForms v6
to 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
he 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.
to 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
he healyhatman 28 Apr, 2019
They need to be turned on, under the main Settings tab
to 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
he 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 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.