Home › Forums › Cascading dropdowns › Autofill for multi drop down?
Tagged: cascading dropdowns
- This topic has 5 replies, 2 voices, and was last updated 6 years, 7 months ago by Alexander Bautz.
-
AuthorPosts
-
-
March 21, 2018 at 11:16 #20339
Hi Alexander,
I have 2x lookup list fields: 1st field is :Multi, 2nd is :Multi of the ID for the list item.
The 2nd field needs to just stamp multiple ID’s when the 1st multi lookup is selected.
At the moment, with both fields set as :multi, the user has to click the ID number to add it rather than autofill.
Or is there a different configuration I need to use for this?
Image attached to see what I mean.
Thanks.Attachments:
-
March 22, 2018 at 19:25 #20358
This was a bug – can you try replacing the /SPJS/DFFS/plugins/SPJS-casc.js with this file and let me know if it works?
Please not that you might need to clear the browser cache – verify that the file version is 3.7.10 when you hover over the “Enhanced with DFFS” link and click the “License and version information”.
Alexander
-
March 23, 2018 at 06:34 #20370
Hi Alexander,
Thanks for the prompt reply.
The first option works but when selecting more options, they don’t get moved across.
Image attached.Also, is it possible to use a Managed Metadata column as the second multi column?
I was going to use a Rule to set the metadata field value anyway but thought I would ask if it’s possible?
Thanks for your efforts with this.Attachments:
-
March 25, 2018 at 12:14 #20382
I have made some changes to let the “Autofill subsequent dropdowns when they contain only one valid option” work also when selecting other options where there are only one available option. Please note that it will only autofill if the “Available options” select has only one options so if you select first an option that has multiple available options, and then another that has only one, the last selection will not be autofilled because the combined list has more than one option.
You find the updated file here.
Unfortunately you cannot use anything but single or multiline text fields with this solution.
Alexander
-
March 26, 2018 at 12:47 #20388
Thank you Alexander, the updated file worked perfectly.
Now I just copy the multi values to a Managed Metadata column using DFFS Rules and Javascript to strip the line breaks using this code:$('#dffs_Title').val().replace(/\n/g,'');
Last thing, with Rules Tab, will you be adding Multi-line text fields to run when field changes to a future release?
Thanks.
-
March 28, 2018 at 09:11 #20411
Maybe I can add support for this in a future release, but you can make it work with a little custom js like described here: https://spjsblog.com/forums/topic/use-multiline-text-as-trigger-in-dffs/
Alexander
-
-
AuthorPosts
- You must be logged in to reply to this topic.