Multi select scripting workaround attempts...unsuccessful
Hi -
I'm trying to set up some scripted actions within my form that take place on the basis of entries into a multiple select form. This needs to be done in an 'on change' script, which appears to make the syntax described in http://forums.zohocreator.com/viewtopic.php?t=19802&highlight=library&sid=522ced301ed14614dc243e860dd4d1de impossible. Obviously, scripting directly from multi selects is currently impossible, so I tried to set up a workaround in which clicking on a decision checkbox runs the script I was hoping the multiselect could run itself.
(NOTE: I'm beginning to suspect that part of my problem is that data in checkboxes aren't actually 'recorded' in any shape or form until the point where data is actually submitted.)
I'm trying to set up a system where the items selected in the multiselect determine whether or not a certain set of fields are shown later on in the form. That is, if someone were to select Option 1 and Option 3, for example, then two fields associated with Options 1 and 3, respectively, would appear for input later on in the form.
My problem is that I haven't a clue how to get any script to actually recognize any of the indivudal strings within the multiselect field. The documentation that's out there tells me that the multiselect field is actually a string, not an array, so I figured I'd try for the "contains" boolean function, but when I attempt to use a variable as string1 and test the form, it ends up spinning the little circle endlessly with no result. I've also tried to set up a system where the inputs for the multiselect are derived from a separate form that also has, in each of the form records, the entry for the multiselect and the names of the fields within the ORIGINAL form that I'd like to have shown which are associated with that particular multiselect item. Problem is, the 'show' command doesn't seem to like to have arguments that are variables of any kind.
Is there any way around this? For now, I've had to revert to using single-select and just request that my users fill it out multiple times (a rather ugly solution)