Check the View State - InfoPath Dev Sign in | Join | Help in Newbie Questions InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » Newbie Questions » Check the View State Check the View State Last post 10-17-2006 08:28 AM by Eric. 3 replies. Page 1 of 1 (4 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 10-16-2006 07:36 AM Eric Joined on 10-10-2006 Posts 24 Check the View State Reply Contact Hello,Is there an easy way to check which view of the form you are in from javascript using the DOM?thanks,-Eric 10-16-2006 12:00 PM In reply to Eric Joined on 10-10-2006 Posts 24 Re: Check the View State Mark as Not AnswerMark as Answer... Reply Contact I think I found something:var oViewState = XDocument.DOM.selectSingleNode("//my:_Internals/my:Status").nodeTypedValue;-Eric 10-17-2006 12:19 AM In reply to Matt Faus Joined on 08-18-2006 Dallas, Texas Posts 1,558 Re: Check the View State Mark as Not AnswerMark as Answer... Reply Contact That's interesting - did you create this node in your schema and add a rule to it or something?I think what you're looking for is this:var viewName = XDocument.View.Name;Have you downloaded the InfoPath SDK yet? A link to it can be found on the left side of this page. Matt Faus / Microsoft InfoPath MVPQdabra® Software / Streamline data gathering to turn process into knowledge 10-17-2006 08:28 AM In reply to Eric Joined on 10-10-2006 Posts 24 Re: Check the View State Mark as Not AnswerMark as Answer... Reply Contact Thanks Matt,I took over this project in progress - so I'm not sure if it was custom or not.(judging by your response it sounds custom)Your solution works as promised,thanks-Eric Page 1 of 1 (4 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.