{"id":4727,"date":"2015-04-30T11:39:19","date_gmt":"2015-04-30T08:39:19","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=4727"},"modified":"2015-04-30T11:43:08","modified_gmt":"2015-04-30T08:43:08","slug":"how-can-i-open-a-prompt-in-a-certain-state","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2015\/04\/30\/how-can-i-open-a-prompt-in-a-certain-state\/","title":{"rendered":"How can I open a prompt in a certain state?"},"content":{"rendered":"<p>Sorry if this is obvious, but how can I open a multiple-state prompt in a specific state other than the first one in the states object? In other words, in the first statesdemo example, how can I open the prompt in state1 instead of state0?<\/p>\n<p>I&#8217;m working on a login\/logout\/registration form with each of the three as a separate state and would like to start the prompt in either the &#8221;log in&#8221; or &#8221;log out&#8221; state depending on whether the user is currently logged in or not.<\/p>\n<p>(I&#8217;m trying to work out the solution reading Impromptu&#8217;s source code, but figured I&#8217;d also pose this question here for others like me to find in the future.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In other words, for the first statesdemo example, how can I open the prompt in state1 instead of state0?<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[],"class_list":["post-4727","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","sijainti-github"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/4727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=4727"}],"version-history":[{"count":2,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/4727\/revisions"}],"predecessor-version":[{"id":4729,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/4727\/revisions\/4729"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=4727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=4727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=4727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}