Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
Edit dependency | 2013-12-08 22-42-51.png | 118.05 KB | doors |
Comments
Comment #1
draenen CreditAttribution: draenen at Monarch Digital commentedDuplicate of #2142691: 'Filled with a value' form state is broken
Comment #2
tchopshop CreditAttribution: tchopshop commentedI 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!
Comment #3
joshuautley CreditAttribution: joshuautley commentedSame 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.
Comment #4
maxilein CreditAttribution: maxilein commentedhttps://www.drupal.org/project/bulk_copy_fields/
but it seems to work only between same types of fields...
Comment #5
dqdFro 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.