If scripts to copy within one Application

If scripts to copy within one Application

Hi,

I use Creator to list customers and clients. I am not familiar with Deluge and have been trying to write a script to use a "yes/no" radio button field to copy address components.

I particularly need help with the Spielman Case Database form. In this one, there is a series of fields for address and an updated address (new address) for each record. Some do not have an updated address in which case I click "no" on the "Address_Change" radio button.

I would like it to be so that if Address_Change is "no" , the information from (Address, Apt, City, State, and Zip) would copy into the new address fields (New_Address, New_Apt, New_City, New_State, and New_Zip) respectively all within the same record.

I would like this to happen on both add record and on update record instances.

Please help.

So far i've gotten the following script to save successfully but not to work in the form.

if (input.Address_Change = "no")
{
    New_Address = Address;
    New_Apt = Apt;
    New_City = City;
    New_State = State;
}

I have provided edit access to support in my settings.

THanks,
Recovery1