« Back to Product

Documentation

Value Input

Require: Symcon >= 8.0

Parameter

Information about the visual properties and meanings of the parameters can be found in the Object Presentation.

Name Type Parameter Description
PRESENTATION String The ID of the presentation VARIABLE_PRESENTATION_VALUE_INPUT
{6F477326-1683-A2FD-D2E7-477F366ECB62}
PRÄFIX String Präfix
SUFFIX String Suffix
MULTILINE Boolean Multiline Input

Examples

// When registering a variable for PHP modules
// Allows numbers to be entered freely.
$this->RegisterVariableFloat('Strompreis', 'Kosten pro kWh', [
    'PRESENTATION' => VARIABLE_PRESENTATION_VALUE_INPUT,
    'SUFFIX' => ' €',
]);
// Allows free text to be entered over multiple lines.
$this->RegisterVariableString('Einkaufsliste', 'Einkaufsliste', [
    'PRESENTATION' => VARIABLE_PRESENTATION_VALUE_INPUT,
    'MULLTILINE' => true,
]);

// For existing variables via script
// Allows numbers to be entered freely.
IPS_SetVariableCustomPresentation(12345, [
    'PRESENTATION' => VARIABLE_PRESENTATION_VALUE_INPUT,
    'SUFFIX' => ' €',
]);
// Allows free text to be entered over multiple lines.
IPS_SetVariableCustomPresentation(12345, [
    'PRESENTATION' => VARIABLE_PRESENTATION_VALUE_INPUT,
    'MULLTILINE' => true,
]);
Any questions?