color selection in display fields rules

enishemed
Posts: 651
Joined: 30 Oct 2017, 11:24
Name: Enis Hemedoglu
Location: Istanbul, Turkey
Company Name: SCORE DANISMANLIK
Contact:

color selection in display fields rules

Post by enishemed »

Color selection field can not be used in display fields rules.
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: color selection in display fields rules

Post by support »

Added this field type. Files from archive replace to:
rules_form.zip to modules\forms_fields_rules\views\
forms_fields_rules.js.zip to modules\items\components\
Let me know if it works ok now.
Attachments
rules_form.zip
(1.37 KiB) Downloaded 74 times
forms_fields_rules.js.zip
(1.19 KiB) Downloaded 86 times
enishemed
Posts: 651
Joined: 30 Oct 2017, 11:24
Name: Enis Hemedoglu
Location: Istanbul, Turkey
Company Name: SCORE DANISMANLIK
Contact:

Re: color selection in display fields rules

Post by enishemed »

it works, thanks.
enishemed
Posts: 651
Joined: 30 Oct 2017, 11:24
Name: Enis Hemedoglu
Location: Istanbul, Turkey
Company Name: SCORE DANISMANLIK
Contact:

Re: color selection in display fields rules

Post by enishemed »

Now, I have another problem.

Color selection field can not be used in processes.
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: color selection in display fields rules

Post by support »

In which place? Can you provide screenshot, please?
enishemed
Posts: 651
Joined: 30 Oct 2017, 11:24
Name: Enis Hemedoglu
Location: Istanbul, Turkey
Company Name: SCORE DANISMANLIK
Contact:

Re: color selection in display fields rules

Post by enishemed »

In my case, "İzin Türü" is color selection field.

I want to add this field in process form but could not add it.

You can see from the pictures. Thanks.
Ekran görüntüsü_20221114_093045.png
Ekran görüntüsü_20221114_093045.png (5.01 KiB) Viewed 905 times
Ekran görüntüsü_20221114_093243.png
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: color selection in display fields rules

Post by support »

Open file plugins\ext\classes\processes\processes.php and find next code

Code: Select all

public static function get_actions_fields_choices($entity_id, $exclude_types = [])
    {
        $available_types = array(
            'fieldtype_checkboxes',
            'fieldtype_radioboxes',
            'fieldtype_boolean',
            'fieldtype_boolean_checkbox',
            'fieldtype_dropdown',
After 'fieldtype_dropdown', add 'fieldtype_color', so it will look like this

Code: Select all

public static function get_actions_fields_choices($entity_id, $exclude_types = [])
    {
        $available_types = array(
            'fieldtype_checkboxes',
            'fieldtype_radioboxes',
            'fieldtype_boolean',
            'fieldtype_boolean_checkbox',
            'fieldtype_dropdown',
            'fieldtype_color',
This fix will be in 3.3 verison.
enishemed
Posts: 651
Joined: 30 Oct 2017, 11:24
Name: Enis Hemedoglu
Location: Istanbul, Turkey
Company Name: SCORE DANISMANLIK
Contact:

Re: color selection in display fields rules

Post by enishemed »

It works,

thanks very much.
enishemed
Posts: 651
Joined: 30 Oct 2017, 11:24
Name: Enis Hemedoglu
Location: Istanbul, Turkey
Company Name: SCORE DANISMANLIK
Contact:

Re: color selection in display fields rules

Post by enishemed »

Dear Sergey,

There is another problem with color selection. Color selection can not be selected in Email Sending Rules for field option.
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: color selection in display fields rules

Post by support »

File from archive replace to plugins\ext\modules\email_sending\actions\
Let me know if it works now.
Attachments
rules.zip
(3.72 KiB) Downloaded 77 times
Post Reply