You are viewing limited content. For full access, please sign in.

Question

Question

Using Weblink URL to display submitted form

asked on January 17, 2014

 Is there a way to put  a LF Form that has been submitted and completed and stored into Laserfiche into a Weblink URL and displayed to the end user without having to email it?  The end user in the case is going to be anonymous as we're using the Public Portal, and we'd like the end user after they submit their finalized form, to be presented on the "Thank You Page"...with a Hyperlink to their submitted form so that they can look at it, download it, and or print it if they like?  I see that you can add a Hyplerlink to the "Thank You Message"...I'm just having an issue trying to get the Weblink URL to work.  Someone also mentioned using the Form Submission History URL as well...but I seem to run into the same thing unless I put the actual Form ID and Submission ID into the Hyperlink...but then that doesn't help for the next person that submits a form as that number is going to change.

0 0

Answer

APPROVED ANSWER
replied on February 3, 2014 Show version history

There's not a great way to link these users to their form submission in WebLink directly after the form submission, because you can't use variables on the Thank You page. This is a feature we hope to provide in a future release.

 

At this point, I think the closest you can get is redirecting them to a common WebLink folder where the form submissions are saved.

0 0

Replies

replied on January 17, 2014 Show version history

In order to link directly to the document, you'll need its ID, which Forms doesn't know. As a workaround, if you know what the document's name will be, you could create a WebLink search URL and append it to the form or email it to the user.

 

For example, if the document follows the user's name, you could have JavaScript create an appropriate WebLink search URL as the user is filling out the form, and then insert that URL in the form or an email. Learn more about creating WebLink search URLs.

1 0
replied on January 20, 2014 Show version history

Eric,

Since this is for a public portal...how would I go about even searaching for their name?  I need a method to have the name they filled out on the Form inserted into the URL so that it searches the proper name as I can't use a Login.

0 0
replied on January 20, 2014

The user will need to enter their name on the form, so you can use some JavaScript to detect when the name has been entered and then use it to construct the search URL.

 

Try something like this. The following code works with three fields: A first name field (with the .first class), a last name field (with the .last class), and a field for the search URL (with the .url class).
 

Be sure to update the hostname and database ID parts of the WebLink search URL in the code shown below. Here's the help link for WebLink search URLs.

 

This code will generate a search URL that will search for documents for documents named after the user's last name, first name (e.g., Cressey, Eric).

 

$(document).ready(function () {
  
  $('.first input, .last input').blur(generateURL);
  
  function generateURL() {
    var firstName = $('.first input').val();
    var lastName = $('.last input').val();
    var url = "http://hostname/WebLink8/Search.aspx?dbid=x&searchcommand=%7BLF%3AName%3D%22" + lastName + "%2C%20" + firstName +"%22%2C%20Type%3DD%7D"
    $('.url input').val(url);
  }
  
});

 

1 0
replied on January 20, 2014

Eric,

I think you're suggestion will work...one question I have because I am rather novice when it comes to Java is where exactly do I put the above code?  I see where I can add the Hyperlink to the Thank you Page, but when I simply pasted the code into the Form...I don't see where the URL get's generated to perform the search? I guess I'm just trying to figure out what triggers the search?

0 0
replied on January 21, 2014 Show version history

My original idea was to use JavaScript to dynamically generate the link and then append it to the thank you page, but this isn't possible as  the Thank You page is a new page that isn't influenced by JavaScript on the form, and you can't use tokens for the Thank You message.

 

It looks like you'll have to solve the problem another way.  You could still use JavaScript to generate the search URL, and then maybe use an email service task to send the submitter a link to the document when they've finished submitting it?

 

On a related note, we are working to improve the usefulness of the Thank You page and will hopefully offer things like variables and JavaScript for that page soon.

0 0
replied on February 3, 2014

Eric,

I'm still not seeing how you can insert the URL into the Form?  Perhaps I'm not following the logic, but the whole issue is back to being able to allow users that don't have an email address...be able to print out the form after it's been submitted so we don't have to worry about the possiblity of them printing a copy, changing the data, then submitting.  If we put a URL into the Form...that's still happening prior to the form being submitted is it not?

0 0
APPROVED ANSWER
replied on February 3, 2014 Show version history

There's not a great way to link these users to their form submission in WebLink directly after the form submission, because you can't use variables on the Thank You page. This is a feature we hope to provide in a future release.

 

At this point, I think the closest you can get is redirecting them to a common WebLink folder where the form submissions are saved.

0 0
replied on February 3, 2014

Does Laserfiche have any plans to provide a print function in future releases as I can't see my case being the only one where someone wants/needs the ability to print the form they just filled out.  Almost anything you do online today provides you both a confirmation page to print/email confirmation.

0 0
replied on February 3, 2014

Yes, we're looking into this feature for an upcoming version of Laserfiche Forms.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.