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

#   Move a custom field and copy its value

##

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

Less More

- Posts: 80
- Thank you received: 0
-
-

12 years 5 months ago [\#159723](#159723) by [leonora](/forum/user/31459-leonora "View leonora's Profile")  *[Move a custom field and copy its value](/forum/27-checkout/868911-move-a-custom-field-and-copy-its-value#159723 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : essential -- Joomla version -- : 3.1 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  HI,  I was unable to resolve how the customer can create the user account and simultaneosly to use these data for enrollment in moodle.  I've tried several ways, but I can not do it yet.  I think one possibility would be to create a custom user field and address field, both with the same label &quot;Apellido&quot; and when the user fills the &quot;Apellido-user-custom-field&quot;, that value was copied in the &quot;Apellido-address-field&quot;. Moreover, the &quot;Apellido-address-field&quot;  For the other hand, I need to put the &quot;Apellido-custom-field&quot; in second order. In a previous mail you said to me:   &quot;If you want to move it in the form, You'll have to edit the file registration or registration&#95;bootstrap via the menu Display&gt; Views and move the code displaying the custom fields.&quot;  I tried it, but I did not be able :-(  Could I help me, please?  Thanks in advance!  Leonora.")* was created by *[leonora](/forum/user/31459-leonora "View leonora's Profile")*

-- url of the page with the problem -- : [ mywebsite.com/mypage](http://mywebsite.com/mypage)
-- HikaShop version -- : essential
-- Joomla version -- : 3.1
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

HI,

I was unable to resolve how the customer can create the user account and simultaneosly to use these data for enrollment in moodle.

I've tried several ways, but I can not do it yet.

I think one possibility would be to create a custom user field and address field, both with the same label "Apellido" and when the user fills the "Apellido-user-custom-field", that value was copied in the "Apellido-address-field". Moreover, the "Apellido-address-field"

For the other hand, I need to put the "Apellido-custom-field" in second order. In a previous mail you said to me:
  "If you want to move it in the form, You'll have to edit the file registration or registration_bootstrap via the menu Display&gt; Views and move the code displaying the custom fields."

I tried it, but I did not be able ![:-(](/media/kunena/emoticons/22.png ":-(")

Could I help me, please?

Thanks in advance!

Leonora.

[ ![h10749d2.PNG](/forum/attachment/17821) ](/forum/attachment/17821 "h10749d2.PNG")

- [ ![h10749d2.PNG](/forum/attachment/17821) ](/forum/attachment/17821 "h10749d2.PNG") [ ](/forum/attachment/17821?download=1 "h10749d2.PNG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2ODkxMS1tb3ZlLWEtY3VzdG9tLWZpZWxkLWFuZC1jb3B5LWl0cy12YWx1ZT90bXBsPW1hcmtkb3du) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

12 years 5 months ago [\#159830](#159830) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Move a custom field and copy its value](/forum/27-checkout/868911-move-a-custom-field-and-copy-its-value#159830 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : essential -- Joomla version -- : 3.1 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  HI,  I was unable to resolve how the customer can create the user account and simultaneosly to use these data for enrollment in moodle.  I've tried several ways, but I can not do it yet.  I think one possibility would be to create a custom user field and address field, both with the same label &quot;Apellido&quot; and when the user fills the &quot;Apellido-user-custom-field&quot;, that value was copied in the &quot;Apellido-address-field&quot;. Moreover, the &quot;Apellido-address-field&quot;  For the other hand, I need to put the &quot;Apellido-custom-field&quot; in second order. In a previous mail you said to me:   &quot;If you want to move it in the form, You'll have to edit the file registration or registration&#95;bootstrap via the menu Display&gt; Views and move the code displaying the custom fields.&quot;  I tried it, but I did not be able :-(  Could I help me, please?  Thanks in advance!  Leonora.")*

Hi,

Creating a custom user field won't make the data save in Moodle.
So what you're trying to do is moot.

No, the solution would be to create a Joomla user plugin to add the address data from HikaShop into Moodle.
But that require the development of a custom plugin by a professional developer.

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

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

Less More

- Posts: 80
- Thank you received: 0
-
-

12 years 5 months ago [\#159832](#159832) by [leonora](/forum/user/31459-leonora "View leonora's Profile")  Replied by *[leonora](/forum/user/31459-leonora "View leonora's Profile")* on topic *[Move a custom field and copy its value](/forum/27-checkout/868911-move-a-custom-field-and-copy-its-value#159832 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : essential -- Joomla version -- : 3.1 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  HI,  I was unable to resolve how the customer can create the user account and simultaneosly to use these data for enrollment in moodle.  I've tried several ways, but I can not do it yet.  I think one possibility would be to create a custom user field and address field, both with the same label &quot;Apellido&quot; and when the user fills the &quot;Apellido-user-custom-field&quot;, that value was copied in the &quot;Apellido-address-field&quot;. Moreover, the &quot;Apellido-address-field&quot;  For the other hand, I need to put the &quot;Apellido-custom-field&quot; in second order. In a previous mail you said to me:   &quot;If you want to move it in the form, You'll have to edit the file registration or registration&#95;bootstrap via the menu Display&gt; Views and move the code displaying the custom fields.&quot;  I tried it, but I did not be able :-(  Could I help me, please?  Thanks in advance!  Leonora.")*

Thanks, Nicolas! But I know that a custom user field won't save in Moodle.

What I wonder is:
1) How should I do to get the value entered by the user in a custom user field is automatically copied to the input of an address-field?

2) How to move the position of the last field to the second position.

Are both things possible?

Thanks again!
Leonora

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

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

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 5 months ago [\#159869](#159869) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Move a custom field and copy its value](/forum/27-checkout/868911-move-a-custom-field-and-copy-its-value#159869 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : essential -- Joomla version -- : 3.1 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  HI,  I was unable to resolve how the customer can create the user account and simultaneosly to use these data for enrollment in moodle.  I've tried several ways, but I can not do it yet.  I think one possibility would be to create a custom user field and address field, both with the same label &quot;Apellido&quot; and when the user fills the &quot;Apellido-user-custom-field&quot;, that value was copied in the &quot;Apellido-address-field&quot;. Moreover, the &quot;Apellido-address-field&quot;  For the other hand, I need to put the &quot;Apellido-custom-field&quot; in second order. In a previous mail you said to me:   &quot;If you want to move it in the form, You'll have to edit the file registration or registration&#95;bootstrap via the menu Display&gt; Views and move the code displaying the custom fields.&quot;  I tried it, but I did not be able :-(  Could I help me, please?  Thanks in advance!  Leonora.")*

Hi,

1) I think that it will require some JavaScript to dynamically get the value filled in the user field to the address one.
2) In the custom fields listing, you can change the ordering. So place the field at the desired place thanks to this option.

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

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

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