Page 1 of 1

Pre-Form

Posted: 15 Feb 2018
by Roo
Is there a way of creating a pre pop up form prior to entering the main form?

This pre-form would then format the main form based on the simple choices made.

If this is not possible could it be put on a wish list for future development?


Thanks

Re: Pre-Form

Posted: 15 Feb 2018
by Nikita Kurguzov
Dear Roo,
I would recommend to use JavaScript Window prompt() Method or Window confirm() Method, which allows you to get users input from a popup window, then use entered input in order to modify the form as necessary.

Re: Pre-Form

Posted: 15 Feb 2018
by Roo
Yeah I saw this (and have used it previously). But what i'm trying to achive, is for the user to change a value within the list (a multi choice option) prior to loading the rest of the form.

Re: Pre-Form

Posted: 15 Feb 2018
by Nikita Kurguzov
Why not have two forms? One form with Choice field, then redirect user to the main form, depending on choice?

Dialog mode wouldn't work here, though, but otherwise, this is more than doable. Which version of SharePoint are you using?

Re: Pre-Form

Posted: 15 Feb 2018
by Roo
2013.

I'll give the 2 form option a try. I'm in the earlier stages of development of this particular issue, so its not a real problem.

Thanks

Re: Pre-Form

Posted: 15 Feb 2018
by Roo
Just a thought - If I have the "New form" displaying the "pre-form" can I open the same item on saving? (ie closing it and reopening it) The Edit version of the same form showing the main part of the form?

Re: Pre-Form

Posted: 15 Feb 2018
by Roo
I got this working really well by using the javascript you described in the other open topic :)

fd.onsubmit(function() {
var uri = fd.setUrlParam(decodeURIComponent(window.location.href), 'FDRedirectWithID', 'http://###/sites/Quality/IM/Lists/Issue/?ID=');
fd.sourceFormParam(uri);
return true;
});

Re: Pre-Form

Posted: 15 Feb 2018
by Nikita Kurguzov
Excellent news, Roo! Tell us if you'll need anything else, we would be glad to help!