I have a cascading dropdown box called 'Request_Response' and it has only two possible selections, 'Yes' and 'No'. When the user selects 'Yes', I want a contact section to appear on the same datapage for them so that they can add their email/phone info. By default, the section will be hidden. Unfortunately, I am not able to make this work. For the record, I can make a button that hides the same section (as described by the Caspio page above).
I have named the email/phone section as 'Section1'. Here's the Javascript I have in the footer:
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
fishsticks
I'm not able to dynamically collapse a section even though I've been referring to these Caspio instructions :
http://howto.caspio.com/tech-tips/creat ... tions.html
I have a cascading dropdown box called 'Request_Response' and it has only two possible selections, 'Yes' and 'No'. When the user selects 'Yes', I want a contact section to appear on the same datapage for them so that they can add their email/phone info. By default, the section will be hidden. Unfortunately, I am not able to make this work. For the record, I can make a button that hides the same section (as described by the Caspio page above).
I have named the email/phone section as 'Section1'. Here's the Javascript I have in the footer:
<script>
var check = document.getElementById('Section1');
if('[@Request_Response]' == 'Yes')
{
check.style.display='inline';
}
else
{
check.style.display='none';
}
</script>
I have tried inserting other fields and values into the Javascript but no luck. Thanks is advance!
Link to comment
Share on other sites
13 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.