How to Add field in confirm?

How to Add field in confirm?

misteammisteam Posts: 48Questions: 17Answers: 0

I have already added the code something like this

className: 'qa_reassign'
},{
extend: "selected",
text: "Reassign",
action: function ( e, dt, node, config ) {
if(confirm( "Are you sure you want to reassign this transaction?" )){
editor
.edit( table.row( { selected: true } ).index(), false )
.set( 'qa_status', 'Disapproved' )
.set( 'type_ap', '' )
.set( 'qa_approvedby', agent_name )
.submit();
}

},

Answers

  • allanallan Posts: 63,175Questions: 1Answers: 10,409 Site admin

    add() can be used to dynamically add a field to an Editor form.

    Allan

This discussion has been closed.