Question:
Hi All,
Is it possible to create a function that automatically triggers once a first function is complete? I have a website which allows users to buy plane parts/assemblies. Different plane parts/assemblies are visible to different users depending on what type of plane they have (all automated using velo/CMS, & user submitted content upon signup). But i want to make it so that certain parts are/aren’t shown depending on the plane type. i.e. some planes have doors, and some dont (they just have a cockpit you climb into), but I want the website to autmatically “expand” a “door info box” if the plane has doors (i have done this now), but then also show numerous fields depending on the number of doors said plane has (i.e. a plane with3 doors, would show 3 fields).
the problem I’m having is that at the moments the “door dialog box” is automatically showing ok (using an .onReady function), but the specific door fields (for doors 1-3, within said door dialog box) then don’t show no matter how i code it…
I am starting to wonder if this is because i need to instruct the code to perform a second function ( a bit like .then) but for upon page load. I think the second of layer of information is not showing because once the door dialog box loads, there is no instruction to then load the relevant content within said box…
Any help much appreciated…