You are viewing limited content. For full access, please sign in.

Question

Question

Dependent drop down values Forms

asked on January 16, 2019 Show version history

Hello,

I am trying to create a dependent drop down in Forms V.9

I have a Department List and and Manager/ Supervisor list. I want the supervisor list field to fill when a certain department is chosen from the list.

I've read through this post (https://answers.laserfiche.com/questions/143250/Dependent-drop-down-values )and applied it. 

However, when I assign a value to the Mgr/Super list, for example domain/username (so I can assign a task), it 'breaks' the script. 

Is there a way to make this work?

Thank you,

Darren

 

 

0 0

Replies

replied on January 17, 2019

Perhaps I did not provide enough information.

I have a Drop Down in a Form.

I also, have a drop down for the Manager/Supervisor related to the Department

I used java scripting (based on the link in the post above) to auto select the Manager/Supervisor based on what was chosen in the Department field

$(document).ready(function () {
 $('#q39').on('change', function(){
  if ($('#q39 select').val() == "Corporate Services" ) {
   $('#q40 select').val("Jason Silver").change();
}
 }); //end change
}); // end doc ready

This worked fine.  

To allow me to assign a task to a specific Forms User using this script:

//add domain in front of 4x4
$('.mgr input').on('change lookup', function() {
if($(this).val().indexOf('domain\\') == -1) {
$(this).val('domain\\' + $(this).val());
}
});
//end add domain in front of 4x4

I used the  Assign values to choices in my Manager/Supervisor field, and assigned DOMAIN\username.

Once I assigned a value to the Manager/Supervisor, the first script for the dependent drop down stopped working.

Is there a way to fix this? or perhaps a different way to do this?

Any help is appreciated.
 

Thank you,

Darren

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.