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

#   Field Constrains do not apply correct

##

- **[iq-guru](/forum/user/40612-iq-guru "View iq-guru's Profile")**
- [![iq-guru's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/40612-iq-guru "View iq-guru's Profile") Topic Author
- [ Offline](/forum/user/40612-iq-guru)

Less More

- Posts: 26
- Thank you received: 0
-
-

10 years 8 months ago [\#230743](#230743) by [iq-guru](/forum/user/40612-iq-guru "View iq-guru's Profile")  *[Field Constrains do not apply correct](/forum/25-install-update/882481-field-constrains-do-not-apply-correct#230743 "-- HikaShop version -- : actual -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.9 -- Browser(s) name and version -- : Chrome (actual)  Hi, i just tried to set up a simple constrained field set for the user registration process. So i have a radiobutton group for &quot;are you a student&quot; yes /no. This is mandantory. I f yes then a second radiobutton group is/should be shown shown &quot;university name hda&quot; yes/no. After user clicks yes several other fields and dropdowns should be shown. So i setup these constrains like explained in the documentation of fields but all fields are always shown. For my understanding the second radiobutton group should show if the user selects in the first radio button group &quot;yes&quot; and if he selects yes in the second group the other fields that are dependent to the second radio button group should be shown. At the moment everything is shown right from the first moment. You can try this on my devsite -&gt; Login -&gt; Register new account. For a better understanding i add some screenshots of the configuration. Did i miss anything with constraining fields as it seems to be very simple? Thanks for your help in advanced ! carsten")* was created by *[iq-guru](/forum/user/40612-iq-guru "View iq-guru's Profile")*

-- HikaShop version -- : actual
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.5.9
-- Browser(s) name and version -- : Chrome (actual)

Hi,
i just tried to set up a simple constrained field set for the user registration process.
So i have a radiobutton group for "are you a student" yes /no. This is mandantory. I f yes then a second radiobutton group is/should be shown shown "university name hda" yes/no. After user clicks yes several other fields and dropdowns should be shown. So i setup these constrains like explained in the documentation of fields but all fields are always shown. For my understanding the second radiobutton group should show if the user selects in the first radio button group "yes" and if he selects yes in the second group the other fields that are dependent to the second radio button group should be shown.
At the moment everything is shown right from the first moment.
You can try this on my devsite -&gt; Login -&gt; Register new account. For a better understanding i add some screenshots of the configuration.
Did i miss anything with constraining fields as it seems to be very simple?
Thanks for your help in advanced !
carsten

- [ ![Voila&#95;Capture&#95;2016-02-21&#95;01-35-33&#95;AM.png](/forum/attachment/29662) ](/forum/attachment/29662 "...1-35-33&#95;AM.png") [ ](/forum/attachment/29662?download=1 "...1-35-33&#95;AM.png")
- [ ![Voila&#95;Capture&#95;2016-02-21&#95;01-36-17&#95;AM.png](/forum/attachment/29663) ](/forum/attachment/29663 "...1-36-17&#95;AM.png") [ ](/forum/attachment/29663?download=1 "...1-36-17&#95;AM.png")
- [ ![Voila&#95;Capture&#95;2016-02-21&#95;01-36-47&#95;AM.png](/forum/attachment/29664) ](/forum/attachment/29664 "...1-36-47&#95;AM.png") [ ](/forum/attachment/29664?download=1 "...1-36-47&#95;AM.png")
- [ ![Voila&#95;Capture&#95;2016-02-21&#95;01-37-09&#95;AM.png](/forum/attachment/29665) ](/forum/attachment/29665 "...1-37-09&#95;AM.png") [ ](/forum/attachment/29665?download=1 "...1-37-09&#95;AM.png")
- [ ![Voila&#95;Capture&#95;2016-02-21&#95;01-37-32&#95;AM.png](/forum/attachment/29666) ](/forum/attachment/29666 "...1-37-32&#95;AM.png") [ ](/forum/attachment/29666?download=1 "...1-37-32&#95;AM.png")

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14266
-
-

10 years 8 months ago -  10 years 8 months ago [\#230748](#230748) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Field Constrains do not apply correct](/forum/25-install-update/882481-field-constrains-do-not-apply-correct#230748 "-- HikaShop version -- : actual -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.9 -- Browser(s) name and version -- : Chrome (actual)  Hi, i just tried to set up a simple constrained field set for the user registration process. So i have a radiobutton group for &quot;are you a student&quot; yes /no. This is mandantory. I f yes then a second radiobutton group is/should be shown shown &quot;university name hda&quot; yes/no. After user clicks yes several other fields and dropdowns should be shown. So i setup these constrains like explained in the documentation of fields but all fields are always shown. For my understanding the second radiobutton group should show if the user selects in the first radio button group &quot;yes&quot; and if he selects yes in the second group the other fields that are dependent to the second radio button group should be shown. At the moment everything is shown right from the first moment. You can try this on my devsite -&gt; Login -&gt; Register new account. For a better understanding i add some screenshots of the configuration. Did i miss anything with constraining fields as it seems to be very simple? Thanks for your help in advanced ! carsten")*

Hi,

Can you try to move the line: Code:

$this-&gt;assignRef('user',$user);

after the line: Code:

$fieldsClass-&gt;jsToggle($this-&gt;extraFields['user'],$user,0);

in the file components/com_hikashop/views/user/view.html.php and then try again ?

Last edit: 10 years 8 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

- **[iq-guru](/forum/user/40612-iq-guru "View iq-guru's Profile")**
- [![iq-guru's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/40612-iq-guru "View iq-guru's Profile") Topic Author
- [ Offline](/forum/user/40612-iq-guru)

Less More

- Posts: 26
- Thank you received: 0
-
-

10 years 8 months ago [\#230776](#230776) by [iq-guru](/forum/user/40612-iq-guru "View iq-guru's Profile")  Replied by *[iq-guru](/forum/user/40612-iq-guru "View iq-guru's Profile")* on topic *[Field Constrains do not apply correct](/forum/25-install-update/882481-field-constrains-do-not-apply-correct#230776 "-- HikaShop version -- : actual -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.9 -- Browser(s) name and version -- : Chrome (actual)  Hi, i just tried to set up a simple constrained field set for the user registration process. So i have a radiobutton group for &quot;are you a student&quot; yes /no. This is mandantory. I f yes then a second radiobutton group is/should be shown shown &quot;university name hda&quot; yes/no. After user clicks yes several other fields and dropdowns should be shown. So i setup these constrains like explained in the documentation of fields but all fields are always shown. For my understanding the second radiobutton group should show if the user selects in the first radio button group &quot;yes&quot; and if he selects yes in the second group the other fields that are dependent to the second radio button group should be shown. At the moment everything is shown right from the first moment. You can try this on my devsite -&gt; Login -&gt; Register new account. For a better understanding i add some screenshots of the configuration. Did i miss anything with constraining fields as it seems to be very simple? Thanks for your help in advanced ! carsten")*

Hi,
ok tried this but it did not change anything.
So i moved it back as it was to not have any unwanted side effects. Will it help if you have ftp access? I have sent you my ftp data a view days ago when you fixed my pinterest nonumbers accordion problem. they are still valid. If you need them again i could sent them again.
Have a great day!
carsten

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14266
-
-

10 years 8 months ago [\#230884](#230884) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Field Constrains do not apply correct](/forum/25-install-update/882481-field-constrains-do-not-apply-correct#230884 "-- HikaShop version -- : actual -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.9 -- Browser(s) name and version -- : Chrome (actual)  Hi, i just tried to set up a simple constrained field set for the user registration process. So i have a radiobutton group for &quot;are you a student&quot; yes /no. This is mandantory. I f yes then a second radiobutton group is/should be shown shown &quot;university name hda&quot; yes/no. After user clicks yes several other fields and dropdowns should be shown. So i setup these constrains like explained in the documentation of fields but all fields are always shown. For my understanding the second radiobutton group should show if the user selects in the first radio button group &quot;yes&quot; and if he selects yes in the second group the other fields that are dependent to the second radio button group should be shown. At the moment everything is shown right from the first moment. You can try this on my devsite -&gt; Login -&gt; Register new account. For a better understanding i add some screenshots of the configuration. Did i miss anything with constraining fields as it seems to be very simple? Thanks for your help in advanced ! carsten")*

Hi,

I found the problem and added a patch on our end.
Download again the latest version on our end and install it on your website and that will fix the problem.

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

- **[iq-guru](/forum/user/40612-iq-guru "View iq-guru's Profile")**
- [![iq-guru's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/40612-iq-guru "View iq-guru's Profile") Topic Author
- [ Offline](/forum/user/40612-iq-guru)

Less More

- Posts: 26
- Thank you received: 0
-
-

10 years 8 months ago [\#230886](#230886) by [iq-guru](/forum/user/40612-iq-guru "View iq-guru's Profile")  Replied by *[iq-guru](/forum/user/40612-iq-guru "View iq-guru's Profile")* on topic *[Field Constrains do not apply correct](/forum/25-install-update/882481-field-constrains-do-not-apply-correct#230886 "-- HikaShop version -- : actual -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.9 -- Browser(s) name and version -- : Chrome (actual)  Hi, i just tried to set up a simple constrained field set for the user registration process. So i have a radiobutton group for &quot;are you a student&quot; yes /no. This is mandantory. I f yes then a second radiobutton group is/should be shown shown &quot;university name hda&quot; yes/no. After user clicks yes several other fields and dropdowns should be shown. So i setup these constrains like explained in the documentation of fields but all fields are always shown. For my understanding the second radiobutton group should show if the user selects in the first radio button group &quot;yes&quot; and if he selects yes in the second group the other fields that are dependent to the second radio button group should be shown. At the moment everything is shown right from the first moment. You can try this on my devsite -&gt; Login -&gt; Register new account. For a better understanding i add some screenshots of the configuration. Did i miss anything with constraining fields as it seems to be very simple? Thanks for your help in advanced ! carsten")*

HI Nicolas, thanks for your effort!
If i do the update now will it overwrite the changes you did for my nonumbers social share component or the changes i did in the product view template or is it save to update ?
Do i have to update the whole package or just a certain module ?
Thanks again for your great support!
Carsten

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14266
-
-

10 years 8 months ago [\#231017](#231017) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Field Constrains do not apply correct](/forum/25-install-update/882481-field-constrains-do-not-apply-correct#231017 "-- HikaShop version -- : actual -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.9 -- Browser(s) name and version -- : Chrome (actual)  Hi, i just tried to set up a simple constrained field set for the user registration process. So i have a radiobutton group for &quot;are you a student&quot; yes /no. This is mandantory. I f yes then a second radiobutton group is/should be shown shown &quot;university name hda&quot; yes/no. After user clicks yes several other fields and dropdowns should be shown. So i setup these constrains like explained in the documentation of fields but all fields are always shown. For my understanding the second radiobutton group should show if the user selects in the first radio button group &quot;yes&quot; and if he selects yes in the second group the other fields that are dependent to the second radio button group should be shown. At the moment everything is shown right from the first moment. You can try this on my devsite -&gt; Login -&gt; Register new account. For a better understanding i add some screenshots of the configuration. Did i miss anything with constraining fields as it seems to be very simple? Thanks for your help in advanced ! carsten")*

Hi,

The modifications for the social networks plugin will be overwritten. So make sure you backup the files in plugins/system/hikashopsocial and restore them after the install.
The views won't be lost.
You can update the whole package

The following user(s) said Thank You: [iq-guru](/forum/user/40612-iq-guru "View iq-guru's Profile")

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

- **[iq-guru](/forum/user/40612-iq-guru "View iq-guru's Profile")**
- [![iq-guru's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/40612-iq-guru "View iq-guru's Profile") Topic Author
- [ Offline](/forum/user/40612-iq-guru)

Less More

- Posts: 26
- Thank you received: 0
-
-

10 years 8 months ago [\#231130](#231130) by [iq-guru](/forum/user/40612-iq-guru "View iq-guru's Profile")  Replied by *[iq-guru](/forum/user/40612-iq-guru "View iq-guru's Profile")* on topic *[Field Constrains do not apply correct](/forum/25-install-update/882481-field-constrains-do-not-apply-correct#231130 "-- HikaShop version -- : actual -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.9 -- Browser(s) name and version -- : Chrome (actual)  Hi, i just tried to set up a simple constrained field set for the user registration process. So i have a radiobutton group for &quot;are you a student&quot; yes /no. This is mandantory. I f yes then a second radiobutton group is/should be shown shown &quot;university name hda&quot; yes/no. After user clicks yes several other fields and dropdowns should be shown. So i setup these constrains like explained in the documentation of fields but all fields are always shown. For my understanding the second radiobutton group should show if the user selects in the first radio button group &quot;yes&quot; and if he selects yes in the second group the other fields that are dependent to the second radio button group should be shown. At the moment everything is shown right from the first moment. You can try this on my devsite -&gt; Login -&gt; Register new account. For a better understanding i add some screenshots of the configuration. Did i miss anything with constraining fields as it seems to be very simple? Thanks for your help in advanced ! carsten")*

Thanks again nicolas for the great support! Now it works well.
Last question will the hikasocial changes become part of the main distribution or do i have allways to keep these in a backup to put them back after an upgrade ?
Thanks in advance
Carsten

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14266
-
-

10 years 8 months ago [\#231279](#231279) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Field Constrains do not apply correct](/forum/25-install-update/882481-field-constrains-do-not-apply-correct#231279 "-- HikaShop version -- : actual -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.9 -- Browser(s) name and version -- : Chrome (actual)  Hi, i just tried to set up a simple constrained field set for the user registration process. So i have a radiobutton group for &quot;are you a student&quot; yes /no. This is mandantory. I f yes then a second radiobutton group is/should be shown shown &quot;university name hda&quot; yes/no. After user clicks yes several other fields and dropdowns should be shown. So i setup these constrains like explained in the documentation of fields but all fields are always shown. For my understanding the second radiobutton group should show if the user selects in the first radio button group &quot;yes&quot; and if he selects yes in the second group the other fields that are dependent to the second radio button group should be shown. At the moment everything is shown right from the first moment. You can try this on my devsite -&gt; Login -&gt; Register new account. For a better understanding i add some screenshots of the configuration. Did i miss anything with constraining fields as it seems to be very simple? Thanks for your help in advanced ! carsten")*

It will be added in the next version of HikaShop yes.

The following user(s) said Thank You: [iq-guru](/forum/user/40612-iq-guru "View iq-guru's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg4MjQ4MS1maWVsZC1jb25zdHJhaW5zLWRvLW5vdC1hcHBseS1jb3JyZWN0P3RtcGw9bWFya2Rvd24=) 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.271 seconds

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

[](#top)
