Click a button from javascript - 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 » Click a button from javascript Click a button from javascript Last post 10-23-2006 10:10 PM by Agni Jonnalagadda. 3 replies. Page 1 of 1 (4 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 10-23-2006 02:58 PM Eric Joined on 10-10-2006 Posts 24 Click a button from javascript Reply Contact Can I have javascript code click a button on one of my form's views?something like: XDocument.view[myview].aButton.click() ???????Thanks,-Eric 10-23-2006 08:07 PM In reply to Shiva Joined on 04-15-2005 India Posts 694 Re: Click a button from javascript Mark as Not AnswerMark as Answer... Reply Contact Hi EricYou can write the below code in button onClick eventXDocument.View.SwitchView("View Name"); Shiva / http://www.ggktech.com 10-23-2006 08:16 PM In reply to Eric Joined on 10-10-2006 Posts 24 Re: Click a button from javascript Mark as Not AnswerMark as Answer... Reply Contact Thanks Shiva,But thats not quite what I had in mind - I want to do exactly the opposite of that. I want to click a button from javascript, not call a javascript from a button.-Eric 10-23-2006 10:10 PM In reply to Agni Jonnalagadda Joined on 12-15-2004 India Posts 617 Re: Click a button from javascript Mark as Not AnswerMark as Answer... Reply Contact Hello Eric, You cannot click on a button from javasript or managed code.Other way to get this functionlity is to call the "onClick" method of the button. Agni / http://www.ggktech.com Page 1 of 1 (4 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.