Solved

Auto select Brose on Load - Nintex Forms


Userlevel 1
Badge +4

I don't want users to see the edit options on load of my form. 

Is there a way for the Browse option in the ribbon to be auto selected on load of form?

icon

Best answer by cecilia-penha 14 June 2022, 17:46

View original

4 replies

Userlevel 3
Badge +8

Hi @kgiles


 


Could you please be more precise ? Are you on classic or new experience ? What is the SharePoint version ?


Natively, when you click on the linked Title of the item you are automatically redirected to the Display form and not the Edit form ? 



 


The Edit option within the ribbon will be available for users with edit permissions with some SharePoint customizations this can be changed. 


 


Are you talking about the Edit option within the SharePoint or Nintex form ?



 

Userlevel 1
Badge +4

Thanks for looking at this and sorry for not providing better details. I'm using Nintex 2013 Classic. I would like users not to see the Edit tab on load but rather have to select the edit tab when needed. I would love if the form would load with Browse auto selected. 



 

Userlevel 3
Badge +8

Hi @kgiles


You have to implement some customizations to achieve it.


 


As an example, you can implement the following solution : 


 


1- First, access an item of the list in edit mode


2- From the menu within the editform.aspx form, click Edit page option


 


3- Add a Script Editor Web Part


 


4- Edit the Script Editor Web part and insert the embed code :


 


<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script type="text/javascript">
function clickBrowseTab(){
$("a[class='ms-cui-tt-a']")[0].click();
}window.onload=function(){
setTimeout(clickBrowseTab,500)
};
</script>

5- Stop editing


 


When you edit the item, the Edit menu is hiding until the user click on edit again. The script simulate the Browse click.


 


Let me know if it helps. ^^

Userlevel 1
Badge +4

You are awesome 🙂 Thank you! Sorry it took me a bit to circle back.

Reply