Checkbox script

Ian Wood revlist at azurevision.co.uk
Sat Jun 19 10:24:33 EDT 2010


Try something like:

Put text of field "disability" into tConcat
Put "egg allergy" into tDis
if tConcat does not contain tDis then
    Put tDis & space & tConcat into field "disability"
End if

Ignore the caps, I'm on the iPhone...

Ian

On 19 Jun 2010, at 15:06, charles61 <cszasz at mac.com> wrote:

>
> Ian,
>
> Thanks for your suggestion! How do I set up a script to add to a  
> string when the script resides in each checkbox?
>
> Charles Szasz
> cszasz at mac.com
>
>
>
>
> On Jun 19, 2010, at 9:26 AM, Ian Wood-3 [via Runtime Revolution]  
> wrote:
>
>> You're only putting one term into the field. Try getting the text of
>> the field and adding it to your string before setting the text of the
>> field.
>>
>> Ian
>>
>> On 19 Jun 2010, at 14:18, charles61 <[hidden email]> wrote:
>>
>>> Unfortunately, this script does not put "Egg Allergy" followed by
>>> "Fish
>>> Allergy" into field "disability" when both checkboxes are checked.
>>> Instead,
>>> only "Egg Allergy" or "Fish Allergy" are inserted into the field.
>> _______________________________________________
>> use-revolution mailing list
>> [hidden email]
>> Please visit this url to subscribe, unsubscribe and manage your  
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>>
>> View message @ http://runtime-revolution.278305.n4.nabble.com/Checkbox-script-tp2261136p2261141.html
>> To unsubscribe from Checkbox script, click here.
>>
>
>
> -- 
> View this message in context: http://runtime-revolution.278305.n4.nabble.com/Checkbox-script-tp2261136p2261169.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list