Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Replacing field content in only record?l

Featured Replies

I am trying to do a script that will duplicate a record and keep some fields but empty others for new data, my problem is that the Replace Field Contents option then replaces the fields in the original record too?? Is there a way to do this?

Help!!

If you set the auto-entry option of "Value from last visited record" for the fields that you want to keep the data the same for, then when you duplicate the record, it will carry over the value.

  • Author

Thanks, but I don't always want a new records to show the last viewed information...

Wouldn't it then even if I say New Record (starting from scratch or other user) get whatever was looked at before instead of a clean layout with blank fields?

Thanks

Jim

  • Author

Got it... I use the "Set Field" command instead and it does what I was looking for... Only replaces the info in the new record!!!

Yeah

Thanks All!

You could always set variables to the field values of those you want to carry the data over.

Set Variable [ $field1; Name ]

Then in your autoentry option, use a calculated result of the variable.

$field1

Theres also the old standby using a script parameter to pass all the values at once.

http://fmforums.com/forum/showpost.php?post/172406/

Well... I feel the use of globals whatever should be restrained, and replaced by more object'ish methods.... Here a CF that only works if a certain script is running - Case(0;0) is fieldtype independent.

--sd

DuplicateSomeFields.zip

Some of us can't create custom functions. Can the same process be done without a custom function?

In my file, A global field is not neccesary as the value it contains could be passed as a script parameter. However, It does make it easier to visualize the process.

I tend to like having a script for the process. For me it's easier to add to and track down problems that might occur, YMMV.

Yes, since it isn't recursive - could it be done without:

Case ( Get ( ScriptName )=_scriptName;Case(0;0);_fieldName)

...if you in each autoenter hardwire the right content. The first is the name of the script where the duped data should be overwritten with void a.k.a Case(0;0) which deals whith all field types container, time or date you name it.

--sd

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.