I am looking for a javascript to render a field based on picklist field vales (mainly old & new picklist values)
I am aware of standard way of conditional rendering but my requirement bit different, we have a picklist field 'Status' with 'Active'& 'Inactive' status & other field 'Deactivation' which is a text field and should be render based on 'status' value (Status= Inactive) this can be done in usual rendering condition but in my case whenever a new record creates the default status will be "Inactive" after several approval (flow is like 'Inactive' ->'Rejection'->inactive (when resubmit)-> 'Active')status will updated to 'Active'.
As per the requirement, 'Deactivation' field should be shown on page when 'Status'=Inactive, with the regular rendering condition 'Deactivation' field is showing all the time on detail page as per the condition, I want to check the status field old value as 'Active' and new value as 'Inactive' then only render my 'Deactivation' field.
Both field's (Status & Deactivation) are in same model
Thanks