Is it possible to modify this script to work with radio buttons. I created a datapage and certain fields need to show if a certain radio button is selected. This script looks like it would work but I don't have the skills in javascript to modify with Caspio Radio buttons .
Once the field is being hidden using rules and this specific field has default value, the value itself will not be stored inside the table once submitted since it is hidden and considered as non existing field. If you want to achieve your current workflow, you may need a JavaScript code that will hide a field based on a checkbox. If you are familiar with Javascript, you may use the code below, paste it in theFooterand play around with it:
The code above will hide the field if the checkbox is not checked. You can modify the code and change the IDs assigned to it based on the ID of your field inside your DataPage.
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
kdezign7
Hi,
Is it possible to modify this script to work with radio buttons. I created a datapage and certain fields need to show if a certain radio button is selected. This script looks like it would work but I don't have the skills in javascript to modify with Caspio Radio buttons .
Help will be appreciated,
Thank you,
kdezign7
Hello @roattw,
Once the field is being hidden using rules and this specific field has default value, the value itself will not be stored inside the table once submitted since it is hidden and considered as non existing field. If you want to achieve your current workflow, you may need a JavaScript code that will hide a field based on a checkbox. If you are familiar with Javascript, you may use the code below, paste it in the Footer and play around with it:
The code above will hide the field if the checkbox is not checked. You can modify the code and change the IDs assigned to it based on the ID of your field inside your DataPage.
I hope this works on you end.
Regards,
Barbie
Link to comment
Share on other sites
1 answer 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.