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

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

Recommended Posts

Posted

I am running a script to do multiple substitutions of text in a global field running fmp 7. I was told that it could be done but I have been unable to get it to run.

My script is:

Go to Record/Request/page[First]

loop

Set Field[completed_template; Substitute(template; "the_item_name"; item_name)]

Set Field[completed_template; Substitute(template; "the_item_id"; item_id)]

Set Field[completed_template; Substitute(template; "the_item_case"; item_case)]

Go to Record/Request/Page[Next; Exit after last]

end loop

item_name, item_id, item_case, completed_template are all text fields

template is text global

The script runs but only substitutes every occurace of "the_item_name" for item_name in the global field and does not substitute either of the two other substitution fields.

Can anyone see what the problem is? Where am I going wrong? Thanks

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