If I have a set of results, but I would like the value in one column (yes/no) as a condition for the next column to appear; could I do something like the following? But is there a way to work around not having rules on this type of report?.
Suppose a no value appeared adjacent to a value in the following example with states, how can I hide one or many others?
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
danielg05
If I have a set of results, but I would like the value in one column (yes/no) as a condition for the next column to appear; could I do something like the following? But is there a way to work around not having rules on this type of report?.
Suppose a no value appeared adjacent to a value in the following example with states, how can I hide one or many others?
https://howto.caspio.com/datapages/reports/result-set-layouts/
Would the following be a start?:
<script>
if("[@field:Account_show]" == "Yes"){
document.getElementById("[@field:Account_value]");
}
else if ("[@field:Account_show]" == "No"){
document.getElementById("[@field:Account_value]").hide();
}
</script>
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.