Skip to main content
10 votes
Accepted

SPFx - How to call function on button click event from ts file with React

Add a property to your IAutoCompleteProps interface for your click handler. Then pass the function from the AutoCompleteWebPart into the interface as one of the component's properties. So in your ...
theChrisKent's user avatar
  • 6,021
6 votes

Name of 3 dots button

Referring this SO post, We have many names for each of it. Nothing is official. 3 horizontal dots - (horizontal) ellipsis, meatballs menu 3 vertical dots - vertical ellipsis, kebab, dango menu 9 ...
Arun Vinoth_PrecogTechnologies's user avatar
3 votes
Accepted

Custom Button on Edit Form

You can PreSaveAction() function to validate the field(s) before saving the item, in the new item form, click edit page then add content editor web part and add your PreSaveAction(), it will ...
A.Saéed's user avatar
  • 1,647
2 votes
Accepted

Redirecting to a different list view with a image button through JavaScript

Add below script in content editor webpart (change your list view page url) <script type="text/javascript" src="https://code.jquery.com/jquery-1.12.0.min.js"></script> <script type="...
SP Developer's user avatar
  • 3,085
2 votes
Accepted

Add a Submit Email Buttonin SharepPoint Designer

If you don't want to send the email to the manager based on the item being created or modified, why not create a new field called 'Email to Manager' - make it a choice field with the options Yes / No. ...
Tally's user avatar
  • 2,253
1 vote
Accepted

SharePoint JS Button Ribbon is not reading functions

Add the code below to a text file and rename it myScript.html and save it. Upload this file to SiteAssets library. Now go to list view page and click edit page. Add a web part called "Content Editor ...
harshal gite's user avatar
  • 1,474
1 vote
Accepted

How to prevent custom button in cewp triggering events twice?

I overlooked that there are 2 save buttons; one on the form and one on the ribbon. This javascript is effectively clicking both. To resolve, I changed the code as below. $("input[value='Save']:first")...
BDC604's user avatar
  • 403
1 vote
Accepted

Follow and Share Button is missing from SharePoint online

Check the steps below. Using an admin user to check if the two buttons exists. Using IE/Chrome F12 check if those buttons hide using CSS. Check if the button have removed at Master page level. ...
LZ_MSFT's user avatar
  • 6,219
1 vote
Accepted

Using html buttons to check/uncheck multiple selection checkbox choice field on edit form in SPO

Sample script for your reference(not complete, I believe you can achieve base on sample script). Insert script editor webpart to edit form and then insert the script to script editor web part. <...
Lee's user avatar
  • 4,271
1 vote

Is there a way to create a button on a SharePoint Page without simply linking an image or jpeg?

You should be able to create a button using HTML and set the action to open your document. This can be included on a single page using an embedded code webpart, or you can apply it to many pages using ...
vanblart's user avatar
  • 687
1 vote
Accepted

custom Complete button

Step 1: You can get the values from the default SharePoint form using Javascript. Use any browser debugger tool to identify the ID of the elements(form fields like - input, choice, etc.) whose data ...
Satyajit Paul's user avatar
1 vote

After submit, PowerApps field blank when viewing/editing

You have two choices to do : Either you apply for each new load for the new form the following function : OnVisible : NewForm('YourFormName') Either you apply OnSuccess Property of your form the ...
AIMEN BOULAHIA's user avatar
1 vote
Accepted

How to create a Submit & Close button in SharePoint Powerapps Form

If the form is attached to a list use RequestHide() [Nothing in parens] to close. ResetForm(SharePointForm1) will just clear the form and you will still have to use the built in cancel to hide the ...
user106864's user avatar
1 vote

How to create a Submit & Close button in SharePoint Powerapps Form

Submit: SubmitForm(SharePointForm1) Close: ResetForm(SharePointForm1) Source: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/sharepoint-form-integration
Mike's user avatar
  • 12.2k
1 vote

JSON formatting to add hover + button (for action to trigger Flow)?

I used the code from @theChrisKent and unfortunately the "hover" part didn't work for me. There was one row, though, where I had tried adding text to the Send Notification field as part of ...
Darryl's user avatar
  • 146
1 vote
Accepted

PowerApps gallery to form, how do i disable SAVE button when Form is in view mode?

If you want to set the button property based on form mode then you can use the FormMode. Example: If(BuildForm.Valid || BuildForm.Mode = FormMode.Edit,DisplayMode.Edit, DisplayMode.Disabled) OR If(...
Ganesh Sanap - MVP's user avatar
1 vote

sharepoint button flow only runs for Owner

HTTP action is a premium action. Therefore it requires a premium license. Everyone who runs the parent flow will need a premium license. Unless you are using a per flow premium license. As a ...
Denis Molodtsov's user avatar
1 vote
Accepted

Sharepoint List - The button inside the column does not work when searching

Your format is correct. I can confirm I'm having the same issue. The Launch Flow action works just fine until I search the list. This is a bug that should be submitted here: https://aka.ms/spdev-...
theChrisKent's user avatar
  • 6,021
1 vote
Accepted

Rename Save button to Submit in Modern Ui NewformAspx

inputs[i].innerHTML cannot be equal to two values at the same time. You could change the class to ms-Button--primary. document.getElementsByClassName("ms-Button--primary")[0].innerText ...
Amos's user avatar
  • 1,981
1 vote

Set Form Values from Popup window

I found the solution To NewForm I added this script to Script Editor Web Part <script type="text/javascript" src="/SiteAssets/Script/jquery-1.10.2.min.js"></script> <...
Anonymous's user avatar
1 vote

Get Code of 'Export To Excel' Button of SharePoint List

You can add a flow to your application in PowerApps to export data to a csv file which can be used in Excel. Here is a video providing a step-to-step tutorial:https://www.youtube.com/watch?v=...
Jerry_MSFT's user avatar
  • 4,230
1 vote
Accepted

How do I add a button in Sharepoint that when clicked display text below it?

As you are using SharePoint Online, I will suggest you to create a SharePoint Framework webpart for your requirements. Check below official documentation of adding JQuery accordion in SPFx webpart: ...
Ganesh Sanap - MVP's user avatar
1 vote

How to redirect to a different page by cancel button

This is an older article, but should still work. It does not remove the existing cancel button, only changes its destination, and it lets you set the cancel destination in the URL. http://...
Mike Smith - MCT's user avatar
1 vote

How to redirect to a different page by cancel button

to accomplish you need a script to do the following: 1-add a new custom cancel button. 2-hide the original Cancel buttons. 3-add the redirect action to the custom button. 4-hide the Ribbon cancel. ...
A.Saéed's user avatar
  • 1,647
1 vote
Accepted

Sorry, something went wrong The formula contains a syntax error or is not supported

Set data type of column to Number and correct formula: ="<a href=""https://www.google.co.in"" target=""_blank""><button>Edit</button></a>"
ted's user avatar
  • 66
1 vote

Sharepoint button not opening modal dialog box when calling javascript function

Following code works for me: In html file (added link in Content Editor Webpart): <script src="https://mysiteurl/SiteAssets/test.js"> </script> <button id="customBtn" onclick="...
Anuja's user avatar
  • 3,097
1 vote

Redirecting to a different list view with a image button through JavaScript

Maybe I don't understand what you want to achieve, or maybe you are over-complicating things. Create a list view. Navigate to that list view and copy the URL. Back on your original page, create ...
teylyn's user avatar
  • 9,044
1 vote

SPFx - How to call function on button click event from ts file with React

You can use the below sample which I have created using SPFx. Update the Render method and add a button with the onClick event in the React tsx file as shown below : public render(): React....
Priyaranjan KS's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible