How to create a form in SharePoint that modifies query string - forms

My request is simple.
I want to put a form (a text field let's say) on a Sharepoint page, with a submit button.
When i submit, I want the URL to be reposted with the s="textfromtextfield".
Say i was on a url http://site/site.aspx?p=x clicking submit will take me to:
http://site/site.aspx?p=x&s="textfromtextfield"

If this button "is completely yours" and not one of sharepoint controls you might try writing the following code on the button click handling method on the server side.
Page.Response.Redirect(newUrl, true);

More than likely you want to open the page in SharePoint Designer and add/play with form actions. Check this page for details (rather than attempt to communicate it step by step):
http://office.microsoft.com/en-us/sharepointdesigner/HA101191121033.aspx
FYI. SharePoint Designer is now free for download from Microsoft.
If you have never edited a form in SharePoint Designer, this may help:
http://office.microsoft.com/en-us/sharepointdesigner/HA101191141033.aspx

Related

Using spfx webparts, would there be a way to either programmatically send an email which has a link to open a modal or using flow?

I want an spfx made webpart that I've made be able to send an email (I'm using IEmailProperties at the moment) which provides a link to a modal form?
For example:
User clicks button in webpart, form loads.
User fills out form and submits it to SP list.
Form sends email on submission. Email has a link to the actual item created, so when the user clicks the provided email link, it opens up the modal form.
I would presume that the user would HAVE to be sent to the SP page where the webpart is unconditionally, but would it be possible to open up the modal corresponding to the SP list item?
Is this feature available in SharePoint framework, because if it isn't, compared to something like InfoPath 2013 or PowerApps it's quite a limitation.
I've researched this with several shallow Google searches and on gitHub for any premade stuff, but alas there is nothing that I've spotted.
I've been told IT IS possible:
"Yeah, they’d have to visit the page. Email clients don’t do JavaScript so you can’t really do interactive stuff there. If you want to take them directly to a page that then displays a modal, that’s plenty possible though. (e.g. display the modal based on if the URL contains a certain string)"
But wouldn't know how to do the above, can anyone start me on the right path?
Regards,
T
In the email, pass a query string containing the item ID/list ID etc of the item, then have the webpart read the See: How can I get query string values in JavaScript? If your values exist. If they do exist, then open the modal using some kind of framework like bootstrap or fluent UI. You can write your own form using PnPjs or use an iframe potentially to display the OOTB edit form.
Additionally, you can link to any page in SharePoint provided you use an extension instead of a webpart to host the modal. You can install extensions tenant wide, and have it listen for the query string.

Accepting A PayPal Payment Through A URL With No Javascript/Form?

I have a program running in an environment that supports URLs, but no javascript.
Say it's a Word document (though it's not).
Is there a way to craft the PayPal payment URL such that it's all that I need, without the requirement of an HTML form or Javascript?
http://paypal.me basically exists for simple things
You can create a Buy Now button via https://www.paypal.com/buttons with NO dropdown menus or text fields (which require HTML) and then, once you've generated your button code, clicking on the "Email" link above will give you a URL.
If you also want the URL to have editable fields, then before you create the button, in Step 2 uncheck the option to save the button at PayPal, generate the code, and click the link to remove code protection. Variables are documented here: https://developer.paypal.com/docs/paypal-payments-standard/integration-guide/Appx-websitestandard-htmlvariables/#technical-variables

Can I read a value from one SharePoint web part into the the form for a list in another web part?

I'm not sure if it's possible to do what I'm hoping, but maybe I'll get lucky. It has to do with setting form fields in a SharePoint 2010 list, using InfoPath forms.
Basically, I have one list with requests from several vendors. Each vendors has their own requests page which is a Web Part Page with one web part: a list of submissions with a custom view applied that filters it only to them. This is a (clunky but functional) way to ensure each vendor only sees their own requests. To submit a new request, they click on the "Add Item" link at the bottom of the list web part. At this point, a customized InfoPath form pops up, and they add their request.
In the form, one of the fields is "Vendor". What I would like to achieve is to have the InfoPath form read something on the page which tells it which vendor's page it was called from and pre-select that vendor (I could then disable the control so they couldn't change it). I am happy to alter the calling page as needed, or to configure the InfoPath form (can you custom-configure GET or POST values or anything to define a field that way?).
Any help would be very appreciated.

Sharepoint Workflow setup

Newbie to sharepoint but this thing didnt work for me as expected.
I am trying to have a sharepoint form:
1)Where accounts fills in section (presses submit, email sent to IT to fill in their section)
2) IT gets email, go fill in their section(press submit, email to MD to approve /reject)
3) MD approves/rejects
4) data saves
I have the form working, and using views am able to go between forms.
Issue is how
1)email alert to groups
2)half filled forms, given to other groups
Thanks
To Solve your first problem :
You can create an event reciver which will fire when an item is created in the list as well as when an existing item is changed in the list Or you can also create a workflow for this too.
There is an approval workflow OOTB which may be helpful for you too, but i am not sure about that.
For the Second question :
Whenever you open the existing item again, infopath form will automatically manage the data entered in the form and displays it as filled data.
Hope this helps.

Sharepoint 2010 Custom Form for document send to option

Good Day!
I have a project on Sharepoint 2010 which requires the following:
1) Under the document settings, there is a "send to" option, I need to be able to add a location to that "send to" which will access a custom form.(Thinking ASP form?) but the question will be how to add that form to the options..
2) This custom form must be able to display the file structure of another site collection's document centre(There are about 19 document libraries in that site collection) and the user will be allowed to select the location to add that document to.
I'm thinking something like reading through the site collection's document libraries and building a file structure from there.. (Will this work? worried about performance as it has to read every time the form loads)
3) After confirming the location, it will direct the user straight to the submit document form(Sharepoint 2010 OOB) of that folder.
I'm hoping there's a certain URL I can pass through that will link it straight there! or at least pass a string value that accesses the folder
Thanks guys for reading through!! : D I know its quite lengthy..
This blog post looks like it might explain how to do what you're looking for.
http://sharepoint.microsoft.com/blogs/GetThePoint/Lists/Posts/Post.aspx?ID=22
You can pass it to a "In Transfer" Document Library that has an event handler or workflow acting upon it that triggers when an item is added, allowing you to add forms and such as needed.