Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7158 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hello everyone.

I'm trying to create a button that will move the contents of one field into another. Is there a way to do this? i have done anything with scripts yet--is that the way to get it done?

thanks

Posted

Hi chasm24, and welcome to the Forum.

Short answer - Yes.

Maybe if you told us why you need to do this, we can help you better.

Are you moving the data, or wanting the data to be the same in both fields. Would a relationship and a portal do what you want to do.

The best approach would be to explain what you have now, and what you want to accomplish. That is, what is the script suppose to do. This could be something as simple as Copy/Paste, or more involved as Set Field, Insert Calculated Results, Replace, Clear, etc.

HTH

Lee

Posted

Sure. It's a fairly simply process.

First, create a new script. Inside the script, use the SetField function -

Setfield [field1; field2]

Basically, this will copy the contents of field2 to field1. That is, supposing that both fields are the same 'type' (text, number, date, etc....). If not, you would need to use other calculation functions. If you wanted to actually "move" the contents, then use the clear function on field2 in your script.

Then create/assign your button to run the above script.

This topic is 7158 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.