Using JS modify property panel's input value , nothing changed!


#1

For example:
$("#camunda-name").val(‘mmmm’); // it is futile

so, I guess that it must be trigger some event to update diagram or bpmn .

$("#camunda-name").keydown();//wrong
$("#camunda-name").change();//wrong


someone help me ... I don't know how to use bpmn-js correctly , only to try it , but  it is so ineffective.:weary:

#2

Hello @1111

if you have currently selected element then you can refer below code

var modeling = bpmnModeler.get('modeling');
modeling.updateProperties(selectedElement, ,{name: 'mmmm'});

if you don’t have selected element then first you need to get the selected element from elementRegestry

var selectedElement= bpmnModeler.get('selection').get();

for more help you can refer this.


#3

thank you very much :kissing_heart: