_getByName

Gathers the data of a certain Form Block based off its specified name.

Parameter

id

The ID of the Form Block to be deleted.

Example

FM_api('FormBlock_getByName',[
    'name'=>'test_name'
    ]
);

Results

On Success

{"id":"2","type":"0","name":"test_name","image":null,"code":null,"parent":"0","cdate":"1669565501","last_edited":"1669565501"}

On Failure

If the "name" parameter is not set or is empty after being trimmed:

{"error":"missing or invalid parameter: name"}

If the "name" parameter does not match the name of an existing Form Block:

{"error":"no such form block"}

Last updated