• Resolved aerolite

    (@aerolite)


    Hello, I used additional fields and it is a textfield. It shows up fine in the page, and I can see it is being sent through POST…

    How can I get this value when the page gets redirected after uploading a file?

    This is the POST I get, and the value from textarea.
    Content-Disposition: form-data; name=”hiddeninput_1_userdata_0″
    Test message

Viewing 1 replies (of 1 total)
  • Plugin Author nickboss

    (@nickboss)

    You can pass this value as a parameter in the redirection URL.

    Redirection is performed by the plugin by calling the following function:

    
    function wfu_Redirect(link) {
    	window.location = link;
    }
    

    After the page loads, you can redeclare this function, so that you change the redirection link, e.g.

    
    wfu_addEventHandler(window, "load", tweak_redirect);
    function tweak_redirect() {
      window["wfu_Redirect"] = function(link) {
        var newlink = link;  //code to set a new redirection link
        window.location = newlink;
      }
    }
    

    You can put the above code (after you complete it) inside the page contents right below the plugin’s shortcode (enclosed in <script> tags).

    Regards

    Nickolas

Viewing 1 replies (of 1 total)
  • The topic ‘Additional Fields Textfield’ is closed to new replies.