color selection in display fields rules

enishemed
Posts: 648
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 »

Thanks very much Sergey, you are awesome.

It is not critical or bug but color selection does not also have "Default Text" option like dropdown field. Maybe for version 3.3, you can add this option. In the picture you can see what I mean with default text option.
Attachments
Ekran görüntüsü 2022-11-23 091509.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 »

Added. File form archive replace to includes\classes\fieldstypes\
Let me know if it works ok.
Attachments
screenshot-localhost-2022.11.24-15_00_30.png
fieldtype_color.zip
(1.84 KiB) Downloaded 86 times
enishemed
Posts: 648
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 in field configuration but does not work in modal form.
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 »

It displays as placeholder if field is not required.
enishemed
Posts: 648
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 »

Yes, but if the field is required it always select the first option, if there is no default select. I think it should behave like dropdown field. The placeholder should appear like "Please Select" (if there is no default option) and force to select an option. The dropdown field behaves like this.
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 »

This is not simple dropdown field but I have made change so now if field is required and entered default text then we will display placeholder.
File from archive replace to includes\classes\fieldstypes\
Attachments
fieldtype_color2.zip
(1.85 KiB) Downloaded 98 times
enishemed
Posts: 648
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 »

this solves the placeholder problem thanks. But it occured a new problem. I could use the value of the color selection field in "Ajax Request" field before the last update. But after the last update, the value of the color selection field is always 0 (zero), no matter what I select.

thanks.
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 includes\classes\fieldstypes\
Now Color field type should be supported in Ajax request.
Let me know.
Attachments
fieldtype_ajax_request.zip
(1.5 KiB) Downloaded 87 times
enishemed
Posts: 648
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 as expected. Thanks.
Post Reply