[Skip to main content](#vessel-content)

#   No error message displayed for custom radio field

##

- **[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")**
- [![deltafidesign's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4846.png)](/forum/user/4846-deltafidesign "View deltafidesign's Profile") Topic Author
- [ Offline](/forum/user/4846-deltafidesign)

Less More

- Posts: 272
- Thank you received: 13
-
-

13 years 3 months ago -  13 years 3 months ago [\#118865](#118865) by [deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")  *[No error message displayed for custom radio field](/forum/33-customers/861106-no-error-message-displayed-for-custom-radio-field#118865 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.1  I've created a custom radio field in user tab. I've created 2 values: &quot;Yes&quot; and &quot;No&quot;. Field is mandatory. &quot;No&quot; is disabled and default value is setted to &quot;No&quot;. I've filled the Error Message with a variable that I want to translate and the tested my registration form. If I do no click over the radio to set it to &quot;Yes&quot;, I would expect that when I click on register button, my error message would be displayed but that's not. The page just reloads, no user is created (correctly) but no error message is displayed to inform user that he must click over &quot;Yes&quot;.  What's wrong?")* was created by *[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")*

-- HikaShop version -- : 2.2.0
-- Joomla version -- : 3.1.5
-- PHP version -- : 5.1

I've created a custom radio field in user tab. I've created 2 values: "Yes" and "No". Field is mandatory.
"No" is disabled and default value is setted to "No". I've filled the Error Message with a variable that I want to translate and the tested my registration form.
If I do no click over the radio to set it to "Yes", I would expect that when I click on register button, my error message would be displayed but that's not. The page just reloads, no user is created (correctly) but no error message is displayed to inform user that he must click over "Yes".

What's wrong?

Last edit: 13 years 3 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84NjExMDYtbm8tZXJyb3ItbWVzc2FnZS1kaXNwbGF5ZWQtZm9yLWN1c3RvbS1yYWRpby1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 3 months ago [\#118898](#118898) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[No error message displayed for custom radio field](/forum/33-customers/861106-no-error-message-displayed-for-custom-radio-field#118898 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.1  I've created a custom radio field in user tab. I've created 2 values: &quot;Yes&quot; and &quot;No&quot;. Field is mandatory. &quot;No&quot; is disabled and default value is setted to &quot;No&quot;. I've filled the Error Message with a variable that I want to translate and the tested my registration form. If I do no click over the radio to set it to &quot;Yes&quot;, I would expect that when I click on register button, my error message would be displayed but that's not. The page just reloads, no user is created (correctly) but no error message is displayed to inform user that he must click over &quot;Yes&quot;.  What's wrong?")*

Hi,

I do not understand your problem and your configuration.
Please post screenshot of your custom field configuration.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84NjExMDYtbm8tZXJyb3ItbWVzc2FnZS1kaXNwbGF5ZWQtZm9yLWN1c3RvbS1yYWRpby1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")**
- [![deltafidesign's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4846.png)](/forum/user/4846-deltafidesign "View deltafidesign's Profile") Topic Author
- [ Offline](/forum/user/4846-deltafidesign)

Less More

- Posts: 272
- Thank you received: 13
-
-

13 years 3 months ago [\#118912](#118912) by [deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")  Replied by *[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")* on topic *[No error message displayed for custom radio field](/forum/33-customers/861106-no-error-message-displayed-for-custom-radio-field#118912 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.1  I've created a custom radio field in user tab. I've created 2 values: &quot;Yes&quot; and &quot;No&quot;. Field is mandatory. &quot;No&quot; is disabled and default value is setted to &quot;No&quot;. I've filled the Error Message with a variable that I want to translate and the tested my registration form. If I do no click over the radio to set it to &quot;Yes&quot;, I would expect that when I click on register button, my error message would be displayed but that's not. The page just reloads, no user is created (correctly) but no error message is displayed to inform user that he must click over &quot;Yes&quot;.  What's wrong?")*

Attached you can see the screenshot of my radio button.

[ ![h41be899.jpg](/forum/attachment/11714) ](/forum/attachment/11714 "h41be899.jpg")

When I go to registration page, I fill all fields except the radio (just for testing) and when I click on register button, no error message inform me that I should fill that required field (maybe because it's already pre-filled with value "No"...?)

- [ ![h41be899.jpg](/forum/attachment/11714) ](/forum/attachment/11714 "h41be899.jpg") [ ](/forum/attachment/11714?download=1 "h41be899.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84NjExMDYtbm8tZXJyb3ItbWVzc2FnZS1kaXNwbGF5ZWQtZm9yLWN1c3RvbS1yYWRpby1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 3 months ago [\#118916](#118916) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[No error message displayed for custom radio field](/forum/33-customers/861106-no-error-message-displayed-for-custom-radio-field#118916 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.1  I've created a custom radio field in user tab. I've created 2 values: &quot;Yes&quot; and &quot;No&quot;. Field is mandatory. &quot;No&quot; is disabled and default value is setted to &quot;No&quot;. I've filled the Error Message with a variable that I want to translate and the tested my registration form. If I do no click over the radio to set it to &quot;Yes&quot;, I would expect that when I click on register button, my error message would be displayed but that's not. The page just reloads, no user is created (correctly) but no error message is displayed to inform user that he must click over &quot;Yes&quot;.  What's wrong?")*

Hi,

Uses the values "1" (for yes) and "0" (for no). "ACCEPTED_PRIVACY_NO" is not considered as an empty value. So the result is logical.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84NjExMDYtbm8tZXJyb3ItbWVzc2FnZS1kaXNwbGF5ZWQtZm9yLWN1c3RvbS1yYWRpby1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")**
- [![deltafidesign's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4846.png)](/forum/user/4846-deltafidesign "View deltafidesign's Profile") Topic Author
- [ Offline](/forum/user/4846-deltafidesign)

Less More

- Posts: 272
- Thank you received: 13
-
-

13 years 3 months ago [\#118919](#118919) by [deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")  Replied by *[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")* on topic *[No error message displayed for custom radio field](/forum/33-customers/861106-no-error-message-displayed-for-custom-radio-field#118919 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.1  I've created a custom radio field in user tab. I've created 2 values: &quot;Yes&quot; and &quot;No&quot;. Field is mandatory. &quot;No&quot; is disabled and default value is setted to &quot;No&quot;. I've filled the Error Message with a variable that I want to translate and the tested my registration form. If I do no click over the radio to set it to &quot;Yes&quot;, I would expect that when I click on register button, my error message would be displayed but that's not. The page just reloads, no user is created (correctly) but no error message is displayed to inform user that he must click over &quot;Yes&quot;.  What's wrong?")*

Tested as you suggested but still same issue. Just reload the page, no user created but no message of error displayed.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84NjExMDYtbm8tZXJyb3ItbWVzc2FnZS1kaXNwbGF5ZWQtZm9yLWN1c3RvbS1yYWRpby1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 3 months ago [\#118957](#118957) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[No error message displayed for custom radio field](/forum/33-customers/861106-no-error-message-displayed-for-custom-radio-field#118957 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.1  I've created a custom radio field in user tab. I've created 2 values: &quot;Yes&quot; and &quot;No&quot;. Field is mandatory. &quot;No&quot; is disabled and default value is setted to &quot;No&quot;. I've filled the Error Message with a variable that I want to translate and the tested my registration form. If I do no click over the radio to set it to &quot;Yes&quot;, I would expect that when I click on register button, my error message would be displayed but that's not. The page just reloads, no user is created (correctly) but no error message is displayed to inform user that he must click over &quot;Yes&quot;.  What's wrong?")*

Hi,

Well, I missed something. "0" will not be considered as empty for the custom field system. You have to empty completely the value.
But at this moment it will not be possible to set the "no" as default, because it has an empty value.

The error message is printed when there is no value set in the custom field, so when the value is empty.

I recommend you to use a single checkbox with a value.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84NjExMDYtbm8tZXJyb3ItbWVzc2FnZS1kaXNwbGF5ZWQtZm9yLWN1c3RvbS1yYWRpby1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")**
- [![deltafidesign's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4846.png)](/forum/user/4846-deltafidesign "View deltafidesign's Profile") Topic Author
- [ Offline](/forum/user/4846-deltafidesign)

Less More

- Posts: 272
- Thank you received: 13
-
-

13 years 3 months ago [\#118960](#118960) by [deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")  Replied by *[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")* on topic *[No error message displayed for custom radio field](/forum/33-customers/861106-no-error-message-displayed-for-custom-radio-field#118960 "-- HikaShop version -- : 2.2.0 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.1  I've created a custom radio field in user tab. I've created 2 values: &quot;Yes&quot; and &quot;No&quot;. Field is mandatory. &quot;No&quot; is disabled and default value is setted to &quot;No&quot;. I've filled the Error Message with a variable that I want to translate and the tested my registration form. If I do no click over the radio to set it to &quot;Yes&quot;, I would expect that when I click on register button, my error message would be displayed but that's not. The page just reloads, no user is created (correctly) but no error message is displayed to inform user that he must click over &quot;Yes&quot;.  What's wrong?")*

Unfortunatly I cannot use a single value because italian laws want that I use something like that with 2 values.

Thanks anyway. Hope you can find a solution for my case in future.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84NjExMDYtbm8tZXJyb3ItbWVzc2FnZS1kaXNwbGF5ZWQtZm9yLWN1c3RvbS1yYWRpby1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.079 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
