I want to show a text field and HTML Block in the same line. I have tried enabling the continue next element but it is not working as expected. My HTML Block consist of the following codes:
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
thead
I want to show a text field and HTML Block in the same line. I have tried enabling the continue next element but it is not working as expected. My HTML Block consist of the following codes:
<span id="row[@field:TeacherID]">[@field:S1_DistrictFunded_Para^]</span>
<script>
if("[@field:S1_DistrictFunded_Para^]" == "Yes") {
document.getElementById("row[@field:TeacherID]").style.color="#444";
document.getElementById("row[@field:TeacherID]").style.fontWeight="500";
document.getElementById("row[@field:TeacherID]").style.backgroundColor="#fcbea0";
document.getElementById("row[@field:TeacherID]").style.padding="4px 4px 4px 4px";
document.getElementById("row[@field:TeacherID]").style.borderRadius="3px";
document.getElementById("row[@field:TeacherID]").style.width="100px";
document.getElementById("row[@field:TeacherID]").style.display="block";
document.getElementById("row[@field:TeacherID]").style.textAlign="center";
document.getElementById("row[@field:TeacherID]").style.fontSize="13px";
}
else if("[@field:S1_DistrictFunded_Para^]" == "No") {
document.getElementById("row[@field:TeacherID]").style.color="#444";
document.getElementById("row[@field:TeacherID]").style.fontWeight="500";
document.getElementById("row[@field:TeacherID]").style.backgroundColor="#A7E1B9";
document.getElementById("row[@field:TeacherID]").style.padding="4px 8px 4px 8px";
document.getElementById("row[@field:TeacherID]").style.borderRadius="3px";
document.getElementById("row[@field:TeacherID]").style.width="100px";
document.getElementById("row[@field:TeacherID]").style.display="block";
document.getElementById("row[@field:TeacherID]").style.textAlign="center";
document.getElementById("row[@field:TeacherID]").style.fontSize="13px";
}
</script>
Is this possible or is there any workaround to achieve this?
Thank you.
Link to comment
Share on other sites
4 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.