Jump to content

New to creating scripts.


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

Recommended Posts

I am new to scriptmaking and I want to create a script that will change a field with a radio button, from "Yes", to "No".

then I would like to create a button that will perfom the script when pressed.

I guessing this might me pretty easy, but I'm having trouble.

Can anyone help?

RET

Link to comment
Share on other sites

quote:

Originally posted by Korky:

Use the 'Replace' Script Step'along with the formula already given

Applying the given calculation to multiple records will actually toggle the field value, i.e. will change Yes to No and No to Yes.

If you just want to change Yes to No and keep No as-is, then use the following:

Set Field [Fieldname, "Case(Fieldname="Yes", "No", Fieldname)"]

An alternative to the Replace command would be to loop through the found set and use Set Field. This way you can perform a Find for all records where Fieldname=Yes, just to make sure.

Oh, the possibilities. smile.gif" border="0

Link to comment
Share on other sites

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