I have two text fields as a part of the user account registration fields.

I want when the user enters a value in Field A for that same value to be copied to field B.

I set it up that "Field B is filled with a value when Field A is filled:. It asks for what value I want to give Field B but i see nothing where I can set it to Field A.

Can someone help me please.

CommentFileSizeAuthor
Edit dependency | 2013-12-08 22-42-51.png118.05 KBdoors
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

draenen’s picture

Status: Active » Closed (duplicate)
tchopshop’s picture

Component: Miscellaneous » Javascript
Status: Closed (duplicate) » Active

I changed this issue because this isn't the same as the #2142691. This question is about copying the value of one field to another field. The "has value" field seems to need a predetermined manual value from an administrator, not a dynamic value from another field.

I simply want to copy one entity reference field value number to another field.

There seems to be no way to do that without custom javascript as far as I can tell.

Please help!

joshuautley’s picture

Same as #2.

We have a Contact and Presenter who may be the same person. So our plan was to fill in the Presenter info fields with the Contact info values as they were filled out then give a "Same As Contact" checkbox that when unchecked would clear the values of the Presenter so they could then enter a different presenter.

Think of a shopping cart when you check the box Same as Shipping for the billing info.

This most likely depends on ajax. I've searched everywhere. It also may depend on Tokens.

maxilein’s picture

https://www.drupal.org/project/bulk_copy_fields/

but it seems to work only between same types of fields...

dqd’s picture

Version: 7.x-3.0-alpha1 » 7.x-3.x-dev
Status: Active » Closed (works as designed)

Fro me this reads as if this is out of scope of this project. Apart from that:

Thanks for the report and all the efforts in here. But due to inactivity in this issue for some years and because of the upcoming EOL of Drupal 7, I will close this issue on the way cleaning up the issue queue.

Feel free to re-open as "Needs review" if you found a solution or have a patch to be reported to help others.