I have created a buttons into my DataPage but I can't align them in the same line. Please see below codes that I created and the screenshot of the output:
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
Hello,
I have created a buttons into my DataPage but I can't align them in the same line. Please see below codes that I created and the screenshot of the output:
<center>
<a href="https://c0hbs831.caspio.com/dp/24f5a0009f29342371034eae9ecb" ><input type="submit" style="font-family:Arial;margin-bottom:3%;display:none;font-family:Arial;" class="cbSubmitButton cbApprove" id="Approve" value="Approve"/></a>
<a href="https://c0hbs831.caspio.com/dp/24f5a0009f29342371034eae9ecb" ><input type="submit" style="font-family:Arial;margin-bottom:3%;display:none;font-family:Arial;" class="cbSubmitButton cbApprove" id="Save" value="Save"/></a>
<a href="https://c0hbs831.caspio.com/dp/24f5a0009f29342371034eae9ecb" ><input type="button" style="font-family:Arial;margin-bottom:3%;font-family:Arial;" class="cbSubmitButton cbApprove" id="Approve" value="Back"/></a>
</center>
<script>
if("[@field:Status]"=="Approved"){
document.getElementById('Save').style.display="block";
}
else if("[@field:Status]"=="Draft"){
document.getElementById('Approve').style.display="block";
}
else if("[@field:Status]"==""){
document.getElementById('Save').style.display="block";
}
document.getElementById('Save').onclick = function(){
document.getElementById('EditRecordStatus').value = "Draft";
};
document.getElementById('Approve').onclick = function(){
document.getElementById('EditRecordStatus').value = "Approved";
};
</script>
Is it possible to align the two buttons in the same line?
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.