Prefill cascading drop down field

Forums vLooup for SharePoint Prefill cascading drop down field

Viewing 2 reply threads
  • Author
    Posts
    • #7408
      Gerard Graham
      Participant

      I’m attempting to create a child record using vLookup to a list where I’m using the Cascading Drop down plug in (3.3). The new form displays correctly but I can’t prefill the field I want which happens to be the first of the two dropdown fields. I can set a simple text field to the desired value but not the field referenced in the cascading drop down. Is there some way of achieving this?

    • #7446
      Alexander Bautz
      Keymaster

      Hi,
      Sorry for the late reply. This has to do with timing. The cascading dropdowns are created before the vLookup sets the field, and therefore the cascading dropdowns will not pick up this value.

      If you have configured the cascading dropdowns “manually” (not using DFFS) you can wrap the call to this function in this code:

      function vLookupPresetFromUrlDone(fin){
        if(fin === "TheFieldInternalNameOfTheFieldYouAreSetting"){
          // put the cascading dropdown code here.
        }
      }

      If you are using DFFS, try deferring DFFS (in the Misc tab) to try to let vLookup finish before it triggers.

      Hope this helps,
      Alexander

    • #7675
      Gerard Graham
      Participant

      THank. Deferring DFFS worked!

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