Expand my Community achievements bar.

Changing mulitple field values in subform at once

Avatar

Former Community Member

My question is regarding mulitple fileds in a subform. For example say your have all string fields named: fieldname1, fieldname2 & fieldname3 inside subform named: subformtest. So when I get data from an XML file and if I get value of true or false i show them on the pdf. Now , I want to do is take the true and false value and convert it to show Yes and No on the form. I have done this by putting the script (below) at "calculate" level for each indiviual field. But is there a way to do this at subform level. Somehow pick all fields in the subform and if the value for any field is true or false change it to yes and no?

test.jpg

1 Reply

Avatar

Level 10

Hi,

I don't understand why you would want to do this, but...

true and false are boolean, therefore you would test without the quotation marks.

If you have a search for Paul Guerette's LockAllFields example on this forum, you will see a solution for looping though objects in a form.

Hope that helps,

Niall