vLookup_Documents: Set name of folder for user

Home Forums vLooup for SharePoint vLookup_Documents: Set name of folder for user

Viewing 1 reply thread
  • Author
    Posts
    • #36141
      Jon Whisman
      Participant

        Hi,

        I am using the vLookup document library functionality in my DFFS forms. In either the new form or the edit form, when the user clicks the button to actually create the folder, any way that I can force set the name of the folder for them?

        We have custom JS that sets a unique vLookup ID and I’d like to set the folder name to that and then, READ ONLY the folder name so that the user can’t edit it.

        We offload files from the library periodically and I want a controlled method for the folder name as opposed to using a workflow to rename the folder after the fact.

        Thanks!

      • #36148
        Alexander Bautz
        Keymaster

          You can try using Custom JS like this:

          setInterval(function(){
          var input = jQuery("#vLookupNewFolderName_vLookupDocuments");
              if(input.length > 0 && input.val() === ""){
                  input.val(getFieldValue("_DFFSID"));
                  input.attr("disabled", true);
              }
          },1000);
          

          You must change “vLookupDocuments” to match your actual vLookup field name and the “_DFFSID” with the field your custom id is stored in.

          Alexander

      Viewing 1 reply thread
      • You must be logged in to reply to this topic.