* [story #79425] support for setting form for collecting data from user in zentao prompt.
This commit is contained in:
@@ -609,6 +609,15 @@ class ai extends control
|
||||
$response['dataPropNames'] = $this->lang->ai->dataSource[$prompt->module];
|
||||
}
|
||||
|
||||
$fields = array_values($this->ai->getPromptFields($promptId));
|
||||
if($fields)
|
||||
{
|
||||
$response['fields'] = $fields;
|
||||
$response['formConfig'] = [];
|
||||
$response['formConfig']['title'] = $this->lang->ai->prompts->formDefaultTitle;
|
||||
$response['formConfig']['submitBtnText'] = $this->lang->ai->prompts->formSubmitBtnText;
|
||||
}
|
||||
|
||||
$response['objectID'] = $objectId;
|
||||
$response['objectType'] = $prompt->module;
|
||||
$response['object'] = $objectData;
|
||||
|
||||
Reference in New Issue
Block a user