Remove Clone button from CO form

I need to remove the Clone button from my CollectionObject form (for all users except a few). I understand that this can be done in Preferences, but setting the preference for each user would be tedious. Is there a way to accomplish this easily?

Hi @willem,

Original Message

While we support setting default user preferences, there is currently no way currently to configure “Form Meta Menu” options for other users in the database. Each user must set this preference themselves, as it is stored only in their browser.

I’ve created an enhancement request on our GitHub to track this:
Allow Form Meta menu attributes to be set by default · specify/specify7 · Discussion #6138 · GitHub

Are there other settings (including those in the meta menu) that you are interested in being able to set by default for users in your database?

Put OSU down as another requesting institution.

I actually didn’t realize this was dependent on the user. I assumed the behavior was configured on a form by form basis by the last admin user with permissions who edited the form meta.

Question RE the browser storage – does this mean that it’s stored in a cookie or something? I have definitely been using SP7 assuming that my carry-forward settings were the same on different machines (laptop, collection workstation, desktop, etc)…

Hi @nfshoobs and @willem –

I reviewed the code, and I have good news! I appear to have initially been completely mistaken. I sincerely apologize for my previous misguidance.

You can use the default user preferences functionality to set some “Form Meta Menu” options for other users in the database. Some time ago, it was stored only in the browser, but that was changed all the way back in 7.8! I expressed my dissatisfaction with the previous implementation, but I must have missed when it changed.

You can configure which buttons are visible via the interface (on the account you are logged into), then you can copy your UserPreferences app resource into a DefaultUserPreferences app resource at the level of your choosing. This doesn’t stop the user from customizing it, but you can absolutely take away the Clone button by default!

In the UserPreferences app resource, there is a line that indicates which buttons to hide and for which table (e.g. "disableClone":["CollectionObject"]):

So @nfshoobs– fortunately your carry forward configuration has been preserved between different browsers and systems! Not to worry.

The following Form Meta menu options are stored in UserPreferences:

  • Form Definition
    • Use Localized Field Labels
  • Show Clone button
  • Show Carry Forward button
    • Carry Forward configuration (incl. table and fields)
  • Read Only mode
  • Generate label on save
  • Auto Numbering

:tada:

2 Likes

Perfect! Thanks Grant!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.