Making string parameter non-editable

Answered

Comments

1 comment

  • Avatar
    juanjo

    It is not possible to set it to be read-only. You could either hide it (setting is <ask> property to 0) or include a read-only version using a labelParameter:

    <parameterGroup>
        <name>port_parameter_group</name>
        <parameterList>
            <labelParameter>
                <name>read_only_port</name>
                <description>8080</description>
                <ruleList>
                    <componentTest>
                        <logic>selected</logic>
                        <name>server</name>
                    </componentTest>
                </ruleList>
            </labelParameter>
            <stringParameter>
                <name>port</name>
                <ruleList>
                    <componentTest>
                        <logic>not_selected</logic>
                        <name>server</name>
                    </componentTest>
                </ruleList>
            </stringParameter>
        </parameterList>
    </parameterGroup>
    

Please sign in to leave a comment.