Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Lock Drowdown after selection

New Here ,
Sep 02, 2020 Sep 02, 2020

Is it possible to make a drop down menu either locked or "view only" once a selection is made?  I'm creating a coversheet for my team to choose their contact signature but I don't want our customers to see we created a dropdown as that seems somewhat impersonal.  Or any other ideas with this same type of functionality that would allow me to only create one form versus a form for each employee?   Thank you!

TOPICS
PDF forms
2.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Sep 02, 2020 Sep 02, 2020

It is possible but what if user change mind or pick wrong selection and want to change it?

Even if it's locked or read only it will still retain look of dropdown field it's better to hide it if it's possibility for you. For example:create text field also on same place as dropdown and hide it and use calculate to get dropdown value, when you choose dropdown value, hide dropdown and show text field with selected value.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 02, 2020 Sep 02, 2020

Hi!  I do currently have the text fields hidden depending on what selection they choose.  How would I go about hiding the drowndown after they make their selection?  Thank you for you help!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 02, 2020 Sep 02, 2020

You can hide it like this:

add empty selection with value (example 0) and use this code:

if(event.value != 0){
event.target.display = display.hidden;}

but then you would need another way to unhide it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 02, 2020 Sep 02, 2020

Yes, but it's not a good idea. What if you want to change your selection? A better option is to use a button to set the fields in the file as read-only (and hide itself), and then click it when you're done.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 02, 2020 Sep 02, 2020

I'm not super concerned if they have to start over since the form only has 4 sections but I like the idea of the button!  I hadn't thought of that. When you say hide itself, do you mean hide the button or the text fields?  If you mean button, how do I hide it?   Lets say I wanted to use my original method, how would I go about doing that? 

Thank you! 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 02, 2020 Sep 02, 2020

Original method:

As the custom validation script of the drop-down enter the following script:

event.target.readonly = true;

 

Button method:

It will hide itself and make the fields in the file read-only. For example:

this.getField("Dropdown1").readonly = true;

this.getField("Text2").readonly = true;

this.getField("Radio3").readonly = true; // etc.

event.target.display = display.hidden;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 02, 2020 Sep 02, 2020

The read only for the dropdown perfectly!  Thank you so much!  I had been going crazy to trying to figure this out.  I really appreciate this.  I'm going to give the button option a try as well!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 02, 2020 Sep 02, 2020

Ok sorry need some more help.  I may have misunderstood and that is why you said doing it my way was a bad idea.  I assumed if you exited the document, upon reopening the document, it would then reopen the drop down menu but it remained as read only.  I tried the button method and it's doing the same thing on exit.  Am I doing it wrong or is that what it's meant to do?   Maybe I'm thinking too much into this..

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 02, 2020 Sep 02, 2020

There's no reason it would change back... You should save the finished file under a new name and then go back to the (editable) original file afterwards.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 16, 2020 Sep 16, 2020

Hi there!  I'm having some issues with this same form.  I nixed the above items but seem to be having issues with what should be a simple conditional drop down box and text field.  It's working for almost all of my items but not for 3 of them and I can't figure out why.  I've redone the code multiple times and checked and rechecked for errors over the last 2 days.  Here is what I've written in the Custom Format Script and the bold/red items towards the bottom aren't showing/hiding the text fields.  I can't figure out how to upload a copy of the form but would be happy to do so if that would help.  Thank you!!!

 

if (this.getField("dependentDropdown").value=="Platinum Choice VUL 2") {

this.getField("AIGProspectus").display=display.visible;
}

if (this.getField("dependentDropdown").value=="Protection VUL 17") {

this.getField("AIGProspectus").display=display.hidden;
}

if (this.getField("dependentDropdown").value=="VULOne") {

this.getField("AIGProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="SVULOne") {

this.getField("AIGProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Harbor VUL") {

this.getField("AIGProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Strategic Objectives VUL") {

this.getField("AIGProspectuss").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="VUL Protector") {

this.getField("AIGProspectuss").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Secure LifeTime GUL 3") {

this.getField("AIGProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Select-A-Term") {

this.getField("AIGProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Protection UL 19") {

this.getField("AIGProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Protection Term") {

this.getField("AIGProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Promise GUL") {

this.getField("AIGProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Advantage Choice UL") {

this.getField("AIGProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Classic Choice Term") {

this.getField("AIGProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="PruLife Custom Premiere II") {

this.getField("AIGProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Term Essential") {

this.getField("AIGProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Platinum Choice VUL 2") {

this.getField("JHProspectus").display=display.hidden;
}

if (this.getField("dependentDropdown").value=="Protection VUL 17") {

this.getField("JHProspectus").display=display.visible;
}

if (this.getField("dependentDropdown").value=="VULOne") {

this.getField("JHProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="SVULOne") {

this.getField("JHProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Harbor VUL") {

this.getField("JHProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Strategic Objectives VUL") {

this.getField("JHProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="VUL Protector") {

this.getField("JHProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Secure LifeTime GUL 3") {

this.getField("JHProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Select-A-Term") {

this.getField("JHProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Protection UL 19") {

this.getField("JHProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Protection Term") {

this.getField("JHProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Promise GUL") {

this.getField("JHProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Advantage Choice UL") {

this.getField("JHProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Classic Choice Term") {

this.getField("JHProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="PruLife Custom Premiere II") {

this.getField("JHProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Term Essential") {

this.getField("JHProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Platinum Choice VUL 2") {

this.getField("LFGProspectus").display=display.hidden;
}

if (this.getField("dependentDropdown").value=="Protection VUL 17") {

this.getField("LFGProspectus").display=display.hidden;
}

if (this.getField("dependentDropdown").value=="VULOne") {

this.getField("LFGProspectus").display=display.visible;

}

if (this.getField("dependentDropdown").value=="SVULOne") {

this.getField("LFGProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Harbor VUL") {

this.getField("LFGProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Strategic Objectives VUL") {

this.getField("LFGProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="VUL Protector") {

this.getField("LFGProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Secure LifeTime GUL 3") {

this.getField("LFGProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Select-A-Term") {

this.getField("LFGProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Protection UL 19") {

this.getField("LFGProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Protection Term") {

this.getField("LFGProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Promise GUL") {

this.getField("LFGProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Advantage Choice UL") {

this.getField("LFGProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Classic Choice Term") {

this.getField("LFGProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="PruLife Custom Premiere II") {

this.getField("LFGProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Term Essential") {

this.getField("LFGProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Platinum Choice VUL 2") {

this.getField("LFG2Prospectus").display=display.hidden;
}

if (this.getField("dependentDropdown").value=="Protection VUL 17") {

this.getField("LFG2Prospectus").display=display.hidden;
}

if (this.getField("dependentDropdown").value=="VULOne") {

this.getField("LFG2Prospectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="SVULOne") {

this.getField("LFG2Prospectus").display=display.visible;

}

if (this.getField("dependentDropdown").value=="Harbor VUL") {

this.getField("LFG2Prospectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Strategic Objectives VUL") {

this.getField("LFG2Prospectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="VUL Protector") {

this.getField("LFG2Prospectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Secure LifeTime GUL 3") {

this.getField("LFG2Prospectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Select-A-Term") {

this.getField("LFG2Prospectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Protection UL 19") {

this.getField("LFG2Prospectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Protection Term") {

this.getField("LFG2Prospectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Promise GUL") {

this.getField("LFG2Prospectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Advantage Choice UL") {

this.getField("LFG2Prospectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Classic Choice Term") {

this.getField("LFG2Prospectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="PruLife Custom Premiere II") {

this.getField("LFG2Prospectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Term Essential") {

this.getField("LFG2Prospectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Platinum Choice VUL 2") {

this.getField("PacProspectus").display=display.hidden;
}

if (this.getField("dependentDropdown").value=="Protection VUL 17") {

this.getField("PacProspectus").display=display.hidden;
}

if (this.getField("dependentDropdown").value=="VULOne") {

this.getField("PacProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="SVULOne") {

this.getField("PacProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Harbor VUL") {

this.getField("PacProspectus").display=display.visible;

}

if (this.getField("dependentDropdown").value=="Strategic Objectives VUL") {

this.getField("PacProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="VUL Protector") {

this.getField("PacProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Secure LifeTime GUL 3") {

this.getField("PacProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Select-A-Term") {

this.getField("PacProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Protection UL 19") {

this.getField("PacProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Protection Term") {

this.getField("PacProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Promise GUL") {

this.getField("PacProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Advantage Choice UL") {

this.getField("PacProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Classic Choice Term") {

this.getField("PacProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="PruLife Custom Premiere II") {

this.getField("PacProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Term Essential") {

this.getField("PacProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Platinum Choice VUL 2") {

this.getField("ProProspectus").display=display.hidden;
}

if (this.getField("dependentDropdown").value=="Protection VUL 17") {

this.getField("ProProspectus").display=display.hidden;
}

if (this.getField("dependentDropdown").value=="VULOne") {

this.getField("ProProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="SVULOne") {

this.getField("ProProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Harbor VUL") {

this.getField("ProProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Strategic Objectives VUL") {

this.getField("ProProspectus").display=display.visible;

}

if (this.getField("dependentDropdown").value=="VUL Protector") {

this.getField("ProProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Secure LifeTime GUL 3") {

this.getField("ProProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Select-A-Term") {

this.getField("ProProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Protection UL 19") {

this.getField("ProProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Protection Term") {

this.getField("ProProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Promise GUL") {

this.getField("ProProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Advantage Choice UL") {

this.getField("ProProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Classic Choice Term") {

this.getField("ProProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="PruLife Custom Premiere II") {

this.getField("ProProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Term Essential") {

this.getField("ProProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Platinum Choice VUL 2") {

this.getField("PruProspectus").display=display.hidden;
}

if (this.getField("dependentDropdown").value=="Protection VUL 17") {

this.getField("PruProspectus").display=display.hidden;
}

if (this.getField("dependentDropdown").value=="VULOne") {

this.getField("PruProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="SVULOne") {

this.getField("PruProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Harbor VUL") {

this.getField("PruProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Strategic Objectives VUL") {

this.getField("PruProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="VUL Protector") {

this.getField("PruProspectus").display=display.visible;

}

if (this.getField("dependentDropdown").value=="Secure LifeTime GUL 3") {

this.getField("PruProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Select-A-Term") {

this.getField("PruProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Protection UL 19") {

this.getField("PruProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Protection Term") {

this.getField("PruProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Promise GUL") {

this.getField("PruProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Advantage Choice UL") {

this.getField("PruProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Classic Choice Term") {

this.getField("PruProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="PruLife Custom Premiere II") {

this.getField("PruProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Term Essential") {

this.getField("PruProspectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Platinum Choice VUL 2") {

this.getField("Pru2Prospectus").display=display.hidden;
}

if (this.getField("dependentDropdown").value=="Protection VUL 17") {

this.getField("Pru2Prospectus").display=display.hidden;
}

if (this.getField("dependentDropdown").value=="VULOne") {

this.getField("Pru2Prospectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="SVULOne") {

this.getField("Pru2Prospectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Harbor VUL") {

this.getField("Pru2Prospectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Strategic Objectives VUL") {

this.getField("Pru2Prospectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="VUL Protector") {

this.getField("Pru2Prospectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Secure LifeTime GUL 3") {

this.getField("Pru2Prospectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Select-A-Term") {

this.getField("Pru2Prospectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Protection UL 19") {

this.getField("Pru2Prospectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Protection Term") {

this.getField("Pru2Prospectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Promise GUL") {

this.getField("Pru2Prospectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Advantage Choice UL") {

this.getField("Pru2Prospectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Classic Choice Term") {

this.getField("Pru2Prospectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="PruLife Custom Premiere II") {

this.getField("Pru2Prospectus").display=display.visible;

}

if (this.getField("dependentDropdown").value=="Term Essential")
{

this.getField("Pru2Prospectus").display=display.hidden;

}

if (this.getField("dependentDropdown").value=="Product") {

this.getField("Pru2Prospectus").display=display.hidden;
}

if (this.getField("dependentDropdown").value=="Product") {

this.getField("PruProspectus").display=display.hidden;
}

if (this.getField("dependentDropdown").value=="Product") {

this.getField("LFGProspectus").display=display.hidden;
}

if (this.getField("dependentDropdown").value=="Product") {

this.getField("LFG2Prospectus").display=display.hidden;
}

if (this.getField("dependentDropdown").value=="Product") {

this.getField("ProProspectus").display=display.hidden;
}

if (this.getField("dependentDropdown").value=="Product") {

this.getField("JHProspectus").display=display.hidden;
}

if (this.getField("dependentDropdown").value=="Product") {

this.getField("AIGProspectus").display=display.hidden;
}

if (this.getField("dependentDropdown").value=="Product") {

this.getField("PacProspectus").display=display.hidden;
}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 16, 2020 Sep 16, 2020

You can use Tools > Share, create a link, and post the link

 

May be the entry "VUL Protector" in the dropdown is not correct.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 16, 2020 Sep 16, 2020

I don't have the share option, bummer!  Maybe that's not an option on Pro 2017.   I did check the dropdown items as well and couldn't find anything wrong with them.  

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 16, 2020 Sep 16, 2020

Pro 2017 doesn't work with Document Cloud, only free DC services. If you subscribe to a DC plan you'll be able to use this option. But if you have dropbox, or Google Drive, you can share the link here in the chat.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 16, 2020 Sep 16, 2020

Double-check the spelling of this item. Even a single space at the end of it, or one letter that's upper-case instead of lower-case, will cause it to not match the string in your code.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 16, 2020 Sep 16, 2020

Yeah, I found that error on a few others but isn't the reason for the error on these 3.  I've even deleted them and re-typed making sure no extra spaces or anything were entered.  I've even gone as far as copy/paste to make sure they are spelled the same.  It just seems so weird that everything else works and these 3 don't when essential I used the same code for everything and just changed the item names.  I'm stumped!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 16, 2020 Sep 16, 2020

The extra space or typo is not necessarily on the script part, right-click on the "VUL Protector" field, select Properties from the context menu. In the "Text Field Properties" dialogue box go to the "General" tab.

 

Verify the field name too.

 

If there are actually any empty spaces after the field name text, you can place the mouse cursor at the end of the field name then hit the delete key a few times. You'll be able to notice if there was an empty space or not.

 

Worst case scenario, it is even a better practice to create the new field from scratch and delete the problematic field. However, from the way is looking, it could also be that if the field VUL Protector is a calulated field maybe readjusting the fields calculation order can fix this.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 01, 2020 Oct 01, 2020

Hello!  I fixed my error above; had to redo the entire dropdown menu which stinks.  I'm pretty much done with my form but a co-worker pointed out something I didn't initially notice.  one of the dropdown boxes doesn't save the selection and reverts back to the Default selection only after you "save" the form.  The code I'm using for this box was based off a sample I found so I'm sure it's just my lack of knoweldge in coding.  The only area it seems to work is Format > Custom Format Script:

/*
LICENSE:
acrojs_dependentList.js by Joel Geraci is licensed under a Creative Commons Attribution 4.0 International License.
https://creativecommons.org/licenses/by/4.0/

You are free to:
Share — copy and redistribute the material in any medium or format
Adapt — remix, transform, and build upon the material for any purpose, even commercially.

Setup:
For list boxes: Add this script to the "selection change" script of the master list box.
For combo boxes: Add this script to the "custom format" script of the dropdown box.

IMPORTANT!
Edit the following line to identify the field name of the dependent list box then edit the properties of the dependentListValues JSON object. Property names should correspond to the export values of the list items.
*/
var dependentListBoxFieldName = "dependentDropdown";
var dependentListValues =
{
"AIG": [
["Product"],
["Platinum Choice VUL 2", "Platinum Choice VUL 2"],
["Secure LifeTime GUL 3", "Secure LifeTime GUL 3"],
["Select-A-Term", "Select-A-Term"]
],
"John Hancock": [
["Product"],
["Protection VUL 17"],
["Protection UL 19"],
["Protection Term"]
],
"Lincoln": [
["Product"],
["VULOne", "VULOne"],
["SVULOne", "SVULOne"],
],
"Pacific Life": [
["Product"],
["Harbor VUL", "Harbor VUL"],
["Promise GUL"],
],
"Protective Life": [
["Product"],
["Strategic Objectives VUL"],
["Advantage Choice UL"],
["Classic Choice Term"],

],
"Prudential": [
["Product"],
["VUL Protector"],
["PruLife Custom Premiere"],
["Term Essential"],

]
};
/*
You probably don't need to change anything from here down
*/
if ((event.target.type == "combobox" && event.name == "Format") || (event.target.type == "listbox" && event.name == "Keystroke")) {
if (event.target.type == "combobox") {
if (dependentListValues.hasOwnProperty(event.target.value)) {
this.getField(dependentListBoxFieldName).setItems(dependentListValues[event.target.value]);
}
else {
this.getField(dependentListBoxFieldName).clearItems();
}
}
if (event.target.type == "listbox" && dependentListValues.hasOwnProperty(event.changeEx)) {
this.getField(dependentListBoxFieldName).setItems(dependentListValues[event.changeEx]);
}
}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 01, 2020 Oct 01, 2020

Seems like one of the dropdown is reverting because of a calulcated field.  Have you checked where the custome calculation scripts are running from in thos etext fields?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 05, 2020 Oct 05, 2020
LATEST

I'm not skilled enough in this to know where to look for that I guess.  In the Dropdown properties, I have the code in the Format Tab then in the Custom Format Script.  Would it be better suited in a different location? I've tried a few different other areas like moving it to Calculate then Custom Calculation Script but it doesn't function properly. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines