Move a custom field and copy its value

  • Posts: 80
  • Thank you received: 0
10 years 11 months ago #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_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> Views and move the code displaying the custom fields."

I tried it, but I did not be able :-(

Could I help me, please?

Thanks in advance!

Leonora.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83932
  • Thank you received: 13588
  • MODERATOR
10 years 11 months ago #159830

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 or Create an account to join the conversation.

  • Posts: 80
  • Thank you received: 0
10 years 11 months ago #159832

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 or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 11 months ago #159869

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

Please Log in or Create an account to join the conversation.

Time to create page: 0.077 seconds
Powered by Kunena Forum