Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

  • Newbies
Posted

Hello everyone, I am a beginner. I am pretty much clueless. I want to set a field only if the radio button is set to "yes". This is what I did:

If[Property::Inspection="yes"]

Set Field [Property::Repair; Property::RepairCost*1]

End If

Can anyone tell me what I did wrong? Plese help.

Posted

Hi and Welcome to the forums. You have this listed in the calculations forum but it seems as thought you are trying to write a script. What are you trying to do? Do you want the value to change automatically in a field or is it something you want to do when you run a script.

At first glance at your script it seems fine except the space you have in front of the " yes". Any spaces within quotes will be taken as literal.

  • Newbies
Posted

Thanks for the reply. Ignore the space in front of yes. it's a typo.

Yes, I am trying to have the value in the field(target field in the set field function) changed when the scrip is executed, but only do so if the radio button is set to "yes".

Am I missing something here?

Posted

You should add in a commit record[] but I dont think this will solve your problem. As a matter of fact what is the problem you are having exactly? Also why bother multiplying by 1?

Posted

I want to copy a value from one field to the target field if the radio button is set to "yes".

How does this answer of of my other questions?

Are the field types properly set as numbers? Like I said earlier, from a brief look at it, it should work. We need specifics; not just repeating the same thing.

Also you dont need to multiply it by 1 to set teh value of one field of that of another.

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