question

guruDevo avatar image
0 Votes"
guruDevo asked guruDevo commented

SharePoint in Responsive design mode custom action is deactivated

We are using SharePoint 2016 on-Premise. When we open the document library in responsive design mode documentupload button in deactived on first time page load but then its automatically activated when i click the button again ?. Is there anything wrong in loaded the enablescript ?..

sharepoint-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RaytheonXie-MSFT avatar image
0 Votes"
RaytheonXie-MSFT answered guruDevo commented

Hi @dineshprabakaran-9759 ,
Per my test,my code runs well in the responsive design mode. Here is the sample of my custom action.Could you provide your code for us to further test?
Could you confirm your custom action is upload a document?
136523-sample.txt



If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



sample.txt (2.2 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for your respose. i have attached the sample code how we use136781-sample.txt



custom action is not active in Responsive design mode but in normal mode its active

0 Votes 0 ·
sample.txt (2.1 KiB)

Sorry its not upload a document button but our own customaction button. i am attaching the code how we use. 137042-sample.txt


0 Votes 0 ·
sample.txt (2.1 KiB)

Hi @guruDevo ,
Could you provide us the Annotation of the parameters "scopeId" , "contextKey" and "reqPermission" ?

0 Votes 0 ·

Hi @RaytheonXie-MSFT ,


hasPermissionOnCurrentList('ButtonID', SP.PermissionKind.addListItems);

ButtonID for example 'Ribbon_Documents_New_SelectButton' is same for the ContextKey.

reqpermission = SP.PermissionKind.addListItems





0 Votes 0 ·