Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 55831

on submit how to set field value in view details of CRM Portal

$
0
0

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");
});

})


Viewing all articles
Browse latest Browse all 55831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>