Enhanced and regular Dropdowns working intermittently

SoilentRed

Caaan do!
I have some forms that use a database join dropdown. Based on the select, a hidden calc field captures and id and which is used to generate options for a followup database dropdown with ajax. The problem is that the second dabasejoin element only works some of the time. your halp is valued.
 
Sorry, but with only this little general information not much can be said.

However, from what I understand:
If the ID in the hidden calc is the value of the first dropdown, why go through this hidden calc? This could be the culprit. With the proper "where" clause in the second dropdown, its options should be generated correctly all the time.
 
You're totally right. I did away with that calc, but I still have the problem.

I think it's a frontend issue? See the attached image. In developer tools, I see the data is being captured, but it's only loading into the dropdown maybe 5% of the time.
 

Attachments

  • issue.jpg
    issue.jpg
    140.7 KB · Views: 58
You have JS errors. Click the red X next to the "3" on the right hand or open the console. These errors can stop the JS for the second dropdown, obviously.
Does it work with Protostar?
Does it work it=n the backend?
 
Yes, It seems to work with protostar. Without console errors too!

When I use my template of choice, I get these errors. see screencap.

Thank you, by the way.
 

Attachments

  • fab-errors.jpg
    fab-errors.jpg
    84.2 KB · Views: 54
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top