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

Populate a text field from a dropdown field?

$
0
0

I'm very new to Javascript..!

I need to populate a text field (subject) based on a dropdown field (new_etape) when the user changes the value in that field.

Let's say the user selects a value in the dropdown, I need to send that value to the 'subject' field.

I think I'm pretty close but I also think I'm missing a part where I need to convert the dropdown value to text. Or maybe I'm way off track.

Here is my code:

function updatesubject () 

var etape = Xrm.Page.getAttribute('new_etape').getValue();

if(etape==null)return;

var result = etape;

Xrm.Page.getAttribute('subject').setValue(result);

}

Any advice?


Viewing all articles
Browse latest Browse all 55831

Trending Articles



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