_setPortalVisibility

Sets whether a Form is visible via portal or not and if it can be picked.

Parameters

id

The ID of the Form

val

An integer which decides if the Form is visible and if it can be picked: 0 => Not visible, cannot be picked 1 => Visible, cannot be picked 2 => Not visible, can be picked 3 => Visible, can be picked

Example

FM_api('Form_setPortalVisibility',[
  'id'=>'460569',
  'val'=>'3'
]);

Results

On Success

{"ok":1}

If the value of "val" is the same as before:

{"ok":1,"warning":"value already set"}

On Failure

If the "id" parameter is missing:

{"error":"no ID provided"}

If the "val" parameter is missing:

{"error":"no val provided"}

If the "id" parameter does not match an existing Form:

{"error":"form does not exist"}

Last updated