Documentation

setValues

sets values into all the form inputs

void setValues(object values, [boolean update] );

Parameters

valuesobjecthash of property - value pairs
updatebooleanif true adds updates the form with new values while exisitng values remain. False by default.

See also

Example

$$("sets").setValues({
    width:250,
    height:480
});

Details

The methods allows for setting several values at at time. Pass the IDs of the necessary property elements and their values into the function.

The second parameter helps manipulate values set separately. By delaut, it is false.

Take that we set new value for a width input from the property described above.

$$('sets').setValues({ width:100 });

In this case, the value for the height is lost. To avoid this, set the update parameter to true. The property sheet will be updated with a new value for width input while height value remains unchanged.

$$('sets').setValues({ width:"Paris" }, true);
Back to top