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

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

Recommended Posts

Posted

Absolutely! Just make your script parameter a calculation based on whatever logic is required to determine the target field.

  • Newbies
Posted

In actuality the script parameter is the target field. Where I get stuck is that it seems all script steps require that target field is statically assigned when the script is put together.

Thanks

Posted (edited)

In actuality the script parameter is the target field. Where I get stuck is that it seems all script steps require that target field is statically assigned when the script is put together.

The target field can be dynamically assigned in a script but not a calculation. What is it exactly you'd like to accomplish? Do you have an example file?

Edited by Guest
Misread question, corrected my response
Posted

If it's getting the value is it the calc:

GetField ( Quote ( Get ( ScriptParameter ) ))

If it's getting the cursor into the correct field:

Go to Field [  ] [ Select/perform ] 

Go to Next Field 

Loop 

Exit Loop If [ Get ( ActiveFieldName ) = Get ( ScriptParameter ) ] Go to Next Field 

End Loop

Obviously requirering a layout containing the fieldname!!!

--sd

Posted

Or hardcode it:

If [ get(scriptparameter) = "First Name" ]

Set Field [ First Name ; ]

Else If [ get(scriptparameter) = "Last Name" ]

Set Field [ Last Name ; ]

Else If [ get(scriptparameter) = "Address" ]

Set Field [ Address ; ]

...

This topic is 6940 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.