Drop-down Value Update

User 2832858 Photo


Registered User
7 posts

I see similar posts to what I want to do, either the answer is too vague or complex for me or it's not quite what I'm looking for. So please forgive me if this has been answered. I want to have about 90 drop-down lists. 30 in 3 columns. We'll call them A, B, and C. I want all of the items in the 30 drop-down boxes for column A to be the same. Same for B but different items than A. and Same for C but different items than A and B. The lists usually have about 28 items in them each. The problem comes when I want to change the values of the drop-downs. Because I use the text files method to populate the drop-downs, I have to click on ALL 90 fields and replace the text file reference. I'd prefer to just replace the text file and have the values automatically update. I don't mind re-publishing the form. I just want to change the values in the 90 drop-downs more easily. Thank you in advance. IT Guy, but not a developer of any kind.
User 187934 Photo


Senior Advisor
18,727 posts
Online Now

Hi Mike,
Here's what I do for a lot of my forms that use dynamic content.
For every select that has changing content set them to required with the only option being the default Choose one.
Now after you export your form you can manually add in the rest of the options with a php include.

<select name="a" id="item58_select_1" required data-hint="">
<option id="item58_0_option" selected value="">
Choose one
</option>
<?php include('../includes/a_select_dropdown.php');?>
</select>

Your php include would look similar to this.
<?php
echo '<option value="One">One</option>';
echo '<option value="Two">Two</option>';
echo '<option value="Three">Three</option>';
?>


Another way to do this is with a JQuery load event if you need dependent dynamic dropdowns.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

Here's my S-Drive site with
examples of what can be accomplished in VSD.
https://progrower.coffeecup.com/
Here's my CoffeeCup SCCP Shop with examples of what can be done.
https://progrower.coffeecup.com/shop/
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2832858 Photo


Registered User
7 posts

Eric, as always, you are so willing to help everyone and I appreciate you very much! I've never needed to export a form, nor do I know much about php (literally almost nothing). BUT what it looks like from your description, I would need to type each drop-down item into the php - where I usually cut and paste my data into the .txt file. Is there no way to create a list in a .txt file or something and tell the php to reference the list? You're the best. Ty!
User 187934 Photo


Senior Advisor
18,727 posts
Online Now

Are you using S-Drive for your form hosting?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

Here's my S-Drive site with
examples of what can be accomplished in VSD.
https://progrower.coffeecup.com/
Here's my CoffeeCup SCCP Shop with examples of what can be done.
https://progrower.coffeecup.com/shop/
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2832858 Photo


Registered User
7 posts

Correct.
User 187934 Photo


Senior Advisor
18,727 posts
Online Now

Sorry there's nothing you can do as all the workarounds require a little alteration after the form is made.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

Here's my S-Drive site with
examples of what can be accomplished in VSD.
https://progrower.coffeecup.com/
Here's my CoffeeCup SCCP Shop with examples of what can be done.
https://progrower.coffeecup.com/shop/
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2832858 Photo


Registered User
7 posts

Once it is exported, then modified, can it be imported back to the S Drive, can it be imported back? Or is the purpose of exporting it, to send it to a site that supports things like php that CC does not?
User 187934 Photo


Senior Advisor
18,727 posts
Online Now

S-Drive won't support any of this as you can't get access to the files that need alteration when publishing to S-Drive.
If you went with a different host you would have more options.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

Here's my S-Drive site with
examples of what can be accomplished in VSD.
https://progrower.coffeecup.com/
Here's my CoffeeCup SCCP Shop with examples of what can be done.
https://progrower.coffeecup.com/shop/
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.