Skip to content

Instantly share code, notes, and snippets.

@AngelaIp
Forked from cgillis-aras/DisableDateField.js
Created May 4, 2023 16:44
Show Gist options
  • Save AngelaIp/40e0bd8ab2a9f3e8b8157bdba85f90ce to your computer and use it in GitHub Desktop.
Save AngelaIp/40e0bd8ab2a9f3e8b8157bdba85f90ce to your computer and use it in GitHub Desktop.
Sample code demonstrating how to disable a date field in Aras Innovator
var input = getFieldByName("effective_date");
input.getElementsByTagName("input")[0].disabled = true;
input.getElementsByTagName("input")[1].disabled = true;
input.getElementsByTagName("input")[1].src = "../images/calendar-disabled.svg";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment