Skip to content

DocumentModel.removeUserParameterValue

SmartJSONEditor edited this page Jan 21, 2019 · 3 revisions

DocumentModel.removeUserParameterValue(parameterName)

Parameters

# Type Description
1 String custom parameter name

Return Value

None

Example

var ValueTransformer = function () {
    this.displayName = "Token Transformer";
    this.shortDescription = "Testing Log Function";
    this.isEditingDisabled = false;
    this.infoUrl = "https://github.com/SmartJSONEditor/PublicDocuments/wiki/Token-Value-Transformer";
    
    this.parameters = function (config) {
		
	if (config == null) {
	    return [];
	}
	// Construct your parameters
        return [];
    };
    
    this.transform = function (inputValue, parameters, userInfo) {
        DocumentModel.removeUserParameterValue("cachedTextValue");
        return inputValue;
    };
}

function sjeClass() {
    return new ValueTransformer();
}

Clone this wiki locally