{"action":"created","issue":{"url":"https://api.github.com/repos/formvalidation/support/issues/356","labels_url":"https://api.github.com/repos/formvalidation/support/issues/356/labels{/name}","comments_url":"https://api.github.com/repos/formvalidation/support/issues/356/comments","events_url":"https://api.github.com/repos/formvalidation/support/issues/356/events","html_url":"https://github.com/formvalidation/support/issues/356","id":111413550,"number":356,"title":"require form init before setting session value and revalidate fields","user":{"login":"diadys","id":3128073,"avatar_url":"https://avatars.githubusercontent.com/u/3128073?v=3","gravatar_id":"","url":"https://api.github.com/users/diadys","html_url":"https://github.com/diadys","followers_url":"https://api.github.com/users/diadys/followers","following_url":"https://api.github.com/users/diadys/following{/other_user}","gists_url":"https://api.github.com/users/diadys/gists{/gist_id}","starred_url":"https://api.github.com/users/diadys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diadys/subscriptions","organizations_url":"https://api.github.com/users/diadys/orgs","repos_url":"https://api.github.com/users/diadys/repos","events_url":"https://api.github.com/users/diadys/events{/privacy}","received_events_url":"https://api.github.com/users/diadys/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-14T14:41:47Z","updated_at":"2015-10-15T09:14:13Z","closed_at":"2015-10-15T09:14:13Z","body":"Hi,\r\n\r\nFirst many thanks for your awesome plugin !\r\n\r\nHere is my use case :\r\nI have some data stored in sessionStorage I want to put back after page reload and revalidate fields afterward.\r\nThe only form event available is \"init.form.fv\" from which I could trigger data loading and revalidation, but actually I can't because it traps me in an infinite loop. $(form).data is still empty when calling :\r\n```\r\n    .on('init.form.fv', function(e, data) {\r\n        var $form = $(e.target);\r\n        $form.formValidation('revalidateField', 'firstname'); <- this causes to trigger again and again init.form.fv\r\n    })    \r\n```\r\n\r\nThanks in advance for your support"},"comment":{"url":"https://api.github.com/repos/formvalidation/support/issues/comments/148327016","html_url":"https://github.com/formvalidation/support/issues/356#issuecomment-148327016","issue_url":"https://api.github.com/repos/formvalidation/support/issues/356","id":148327016,"user":{"login":"diadys","id":3128073,"avatar_url":"https://avatars.githubusercontent.com/u/3128073?v=3","gravatar_id":"","url":"https://api.github.com/users/diadys","html_url":"https://github.com/diadys","followers_url":"https://api.github.com/users/diadys/followers","following_url":"https://api.github.com/users/diadys/following{/other_user}","gists_url":"https://api.github.com/users/diadys/gists{/gist_id}","starred_url":"https://api.github.com/users/diadys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diadys/subscriptions","organizations_url":"https://api.github.com/users/diadys/orgs","repos_url":"https://api.github.com/users/diadys/repos","events_url":"https://api.github.com/users/diadys/events{/privacy}","received_events_url":"https://api.github.com/users/diadys/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T09:14:13Z","updated_at":"2015-10-15T09:14:13Z","body":"Exactly what I wish.\r\n\r\nSorry, I'm so used to asynchronous programming, I forgot Javascript calls are sequential...Form has been initialized, data loaded and validation made !\r\n\r\nCheers !"}}