Get a field's _current_ value in Component Editor? (Tridion 2011 SP1)

后端 未结 2 646
无人共我
无人共我 2021-01-02 03:03

I\'m writing an extension to the \"Save\" Command, where basically I want to validate certain fields and present a popup allowing the editor to select a given keyword or oth

2条回答
  •  隐瞒了意图╮
    2021-01-02 03:46

    I don't know if this is the proper way to do it, but you could fire the "collectdata" event on the item - which will update it's data with what has been entered on the editing screen so far.

    var item = $display.getView().getItem();
    item.fireEvent("collectdata");
    $log.message(item.getXml());
    

提交回复
热议问题