app/static/outcome-edit.js
// A function to use the search result to fill the indicator form
A function to use the search result to fill the indicator form
A function to use the search result to fill the indicator form
function searchFill(searchArrayIndex) {
    document.getElementById(`indicatorCategory`).value = searchArrayGlobal[searchArrayIndex].obj.category
    document.getElementById(`indicator`).value = `${searchArrayGlobal[searchArrayIndex].obj.indicator_th} (${searchArrayGlobal[searchArrayIndex].obj.source_th}) / ${searchArrayGlobal[searchArrayIndex].obj.indicator_en} (${searchArrayGlobal[searchArrayIndex].obj.source_en})`
    searchClear()
}
function searchFill ( searchArrayIndex ) { document . getElementById ( ` ` ) . value = searchArrayGlobal [ searchArrayIndex ] . obj . category document . getElementById ( ` ` ) . value = ` ${ searchArrayGlobal [ searchArrayIndex ] . obj . indicator_th } ${ searchArrayGlobal [ searchArrayIndex ] . obj . source_th } ${ searchArrayGlobal [ searchArrayIndex ] . obj . indicator_en } ${ searchArrayGlobal [ searchArrayIndex ] . obj . source_en } ` searchClear ( ) }
A function to use the search result to fill the indicator form
A function to use the search result to fill the indicator form