Webform Modification

Answered

Comments

5 comments

  • Matt Anderson

    Hey Alex,

    I have a very similar question so I'd like to hop on to this thread.

    I'm trying to bind some javascript events to webform fields and the submit button.  It doesn't seem to be possible though, due to same-origin security policies.  

    Here's my js error:

    Blocked a frame with origin " https://webform.dev" from accessing a frame with origin " https://podio.com". The frame being accessed set "document.domain" to "podio.com", but the frame requesting access did not. Both must set "document.domain" to the same value to allow access.

     

    Seems like the best solution will be to make a server-side middleman in our language of choice. 

    Anyone else have an idea on how to get some custom JS into webforms?

    0
    Comment actions Permalink
  • Alex Miller

    It won't work because of cross site scripting restrictions. I ended up writing a few lines of php and posting my form to the php which posts to podio. 

    0
    Comment actions Permalink
  • Andreas Haugstrup Pedersen

    A server-side middleman is usually the easiest by far. Otherwise you'd have to expose sensitive data to the public (we do support CORS, but you'll be exposing sensitive credentials to the public for this use case)

    0
    Comment actions Permalink
  • Ben Rubinstein

    Frustratingly, if I just copy the HTML from the webform and put that on my site, it all works (and I can adjust presentation, make hidden fields etc, restrict the ability to add multiple files, etc) - except that the user has no indication that the form has been submitted.  The data does actually go through, a new item is created in my app: but there's no feedback, whereas in the true form the after submitting the 'success message' is displayed.

    If Podio could just address that one issue, or even have the old fashioned option of a 'success URL' to go to after submission, it would unlock an enormous amount of flexibility without needing to set up server-side scripting.

    0
    Comment actions Permalink
  • Anthony Ladd

    Agreed with some of the comments below. This is a significant weakness for Podio. Tried a couple work-arounds - can get the form validation to work, but ultimately won't be able to load the "Thank you" page.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk