custom add new item button

Home Forums vLooup for SharePoint custom add new item button

Viewing 2 reply threads
  • Author
    Posts
    • #34450
      Bryan Waldrop
      Participant

        I am familiar with setting up the ADD NEW button in vlookup through the configuration but would like to move the location of it to a different place on the my edit form. Specifically I want to move it to a row of existing buttons governing other administrative custom “onclick” js functions. Can the add new child button function be added to a custom button rather than the one that is created through the configuration and can you share what that function would look like? Thank you!

      • #34456
        Alexander Bautz
        Keymaster

          Hi,
          The easiest is to hide the original button by adding this to your custom css:

          #newItemWrap_vLookupTasks {
              display:none;
          }

          Then add a button to your button-row like this:

          <input type="button" onclick="jQuery('#newItemWrap_vLookupTasks > span').trigger('click')" value="Add new item">

          Replace vLookupTasks with the internal name of your field in both snippets above.

          Alexander

        • #34467
          Bryan Waldrop
          Participant

            Thank you very much!

        Viewing 2 reply threads
        • You must be logged in to reply to this topic.