Hello all. Working on a site with SAEF functionality. So far everything works great! I’m wanting to incorporate a preview function, that opens up a new tab that show what the submission would look like.
Here are my commands
<input type="submit" name="submit" value="Submit" />
<input type="submit" name="preview" value="Preview">EDIT: for some reason its not posting all the code. in the second submit button the additional code is present: onclick=“this.form.target=‘_blank’;return true;”
This works great. When they click Preview, it opens up a new tab/window that displays a preview. The problem is, when they go back to the original tab and click submit, it then also open in a new tab and takes you to the confirmation of submission page. If you click submit and have never clicked preview, it will take you to confirmation page in the same window (like it is designed to do).
Anyone able to help me figure this out. This is causing an error with an ngen file upload field. Its not uploading the file if the submission was sent to a new page.
In cliff note form: Submit button sends to confirmation screen in same window. Preview button to open new window with preview of post. If preview is hit before submit, the submit also opens in a new window (which I don’t want).
Hope this is clear.