hi,
i want to change 'mutil value select" to "custom value input" in ilogic user parameters. something like this:
if condition A then
multivalue.setlist("length", 1,2,3,4,5)
else
(users can enter any value they want, how can i remove the list first and set it to custom value input?)
end fi
thanks
spec 2011 sp2 & windwo 7 64bit
Solved! Go to Solution.
Solved by MjDeck. Go to Solution.
Here's a rule that will do it:
' ___________
MultiValue.SetValueOptions(True)
If (condition = "A") Then
MultiValue.SetList("length", 1,2,3,4,5)
Else
MultiValue.List("length") = Nothing
End If
' __________
With the SetValueOptions statement as shown, when you make the SetList call the parameter will be automatically changed (if a change is required) to the value in the list that is closest to its current value.