March 28, 200718 yr Newbies 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.
March 28, 200718 yr 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.
March 28, 200718 yr Author Newbies 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?
March 28, 200718 yr 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?
March 28, 200718 yr Author Newbies I want to copy a value from one field to the target field if the radio button is set to "yes".
March 28, 200718 yr 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.
Create an account or sign in to comment