I am trying to write a logic where I have to clone a custom objectwith its child (having lookup relationship). The clone record show appear with status 'New' and Date- Month fields for that record should be editable to the user . Else everything should be read only.
I am able to do the cloing perfectly with the logic written below but stuck with the portion of making the month date field editable only when clone button is clicked and status of the record is 'New'.
Could you please advice the steps!