Select your multistate, then in the Object states panel, click through til the state you want - it's basically like a group within a group - so keep on clicking until you highlight the part you want!
Thanks tiim for reply.
but I want to do it programmatically. Do you know any Interface or inbuild function to highlight state?
I can get number of states and name of states using functions.
Ahh I see! Sorry about that!
I am also looking for some programming advice!
Are you on a Mac?
There is a program called AppleScriptEditor
if you open that, then go go
file > open dictionary > Adobe Indesign CS"your version"
It tells you all the apple script commands you can use with inDesign
If you look through the dictionary to
"Interactive Elements Suite" and then within that "multistate object" there are lots of things to choose from
Maybe this is something worth looking at? (:
@Priyanka – you did not mention a specific scripting language.
app.selection.states.active = true;
The expression from left to wright (for lurkers who never saw a line of code):
app => application (that's InDesign, of course)
selection => your current selection in the UI (could be one item, could be many)
 => index number 0 is the first item in your selection; be cautious with the expression "first", it depends on the InDesign version what that does exactly mean, if you selected more than one object
states => obviously the "state" object (always with the plural "s", it's the collection of all states in that selected MultiStateObject)
 => index number 2 is the 3rd element of the states collection
active => property for the active status; boolean, could be "true" or "false"
= => with the "=" sign, you are setting the value
true => the value of the property; self-explanatory, I hope…
; => end of expression, all that comes after is a different expression.
The different parts are held together with a dot-notation. The index is directly glued to its object, no dot notation between object and index.
If you want learn more about ExtendScript and the InDesign DOM see Jongwares' documentation at: