HI
I have entity list and view details entity form in crm portal. One of the fields in the view details is a drop down with 5 values. On submit I want to change the value of the drop down to a different value and persist the same to the entity. I tried using the following but not able to save the new value. I am able to see the alert. I have the following in the entityform javascript. If I change value to a different value manually on the screen it saves on submit. When the value is 2 I would also like to make the field read only when its value is 2.
$(document).ready(function(){
$("#UpdateButton").click(function() {
alert ('Insisde function');
$('#m_productstatus').val(2);
$("#InsertButton").trigger("click");
});
})