Javascript - Hidding non-required fields on the edit screen.
I'm looking for a way to only show required fields when in edit mode of an Opportunity. In the detail page I'd like to see everything listed.
It's fairly easy to identify the labels since they are classified as required. There doesn't seem to be any similar convention for the input fields. Does anyone know of any attribute that identifies these input fields as being required or have any suggestions on what I can try?
Here's my code for the labels:
<script>
oraclecrmod.onReady(function () {
if (oraclecrmod.ctx.isObject("Opportunity") && oraclecrmod.ctx.isEditPage()) { // checking if this is Opportunity Object Edit page