how get select input value in tracker capture.

Hi,

Please need help me on this,

I am doing custom form in tracker form, I want to get select input value in tracker capture with javascript. I need it for generate another value based on it.

Thanks!!!

Best regards.

Hi Hakim,

Can you try this one,

let customForm = angular.element(document.querySelector(“d2-custom-data-entry-form”)).scope();

let (name_of_Value) = customForm.currentEvent.(put_DataElement_ID_Of_Input_field_here);

···

On Fri, Jan 12, 2018 at 10:27 PM, DJIBRIL Hakim djib.hakim@gmail.com wrote:

Hi,

Please need help me on this,

I am doing custom form in tracker form, I want to get select input value in tracker capture with javascript. I need it for generate another value based on it.

Thanks!!!

Best regards.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Name: Nguyễn Trần Nghĩa.
Tel: 0903721500

Thank you Nghia.

I will try it and get back to you!

···

2018-01-14 10:56 GMT+00:00 Nghia Nguyen nghianguyentran92@gmail.com:

Hi Hakim,

Can you try this one,

let customForm = angular.element(document.querySelector(“d2-custom-data-entry-form”)).scope();

let (name_of_Value) = customForm.currentEvent.(put_DataElement_ID_Of_Input_field_here);

On Fri, Jan 12, 2018 at 10:27 PM, DJIBRIL Hakim djib.hakim@gmail.com wrote:

Hi,

Please need help me on this,

I am doing custom form in tracker form, I want to get select input value in tracker capture with javascript. I need it for generate another value based on it.

Thanks!!!

Best regards.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Tel: 0903721500


Name: Nguyễn Trần Nghĩa.