public Field createFieldTextMasked(
            Field formFieldParam, String maskValueParam)
    {
        if(formFieldParam != null && this.serviceTicket != null)
        {
            formFieldParam.setServiceTicket(this.serviceTicket);
        }

        if(maskValueParam == null || maskValueParam.trim().isEmpty())
        {
            maskValueParam = "";
        }

        if(formFieldParam != null)
        {
            formFieldParam.setTypeAsEnum(Field.Type.Text);
            formFieldParam.setTypeMetaData(FieldMetaData.Text.MASKED.concat(maskValueParam));
        }

        return new Field(this.putJson(
                formFieldParam, WS.Path.FormField.Version1.formFieldCreate()));
    }
public Field createFieldTextMasked(
            Field formFieldParam, String maskValueParam)
    {
        if(formFieldParam != null && this.serviceTicket != null)
        {
            formFieldParam.setServiceTicket(this.serviceTicket);
        }

        if(maskValueParam == null || maskValueParam.trim().isEmpty())
        {
            maskValueParam = "";
        }

        if(formFieldParam != null)
        {
            formFieldParam.setTypeAsEnum(Field.Type.Text);
            formFieldParam.setTypeMetaData(FieldMetaData.Text.MASKED.concat(maskValueParam));
        }

        return new Field(this.putJson(
                formFieldParam, WS.Path.FormField.Version1.formFieldCreate()));
    }
public Field createFieldTextMasked ( Field formFieldParam , String maskValueParam ) { if ( formFieldParam != null && this . serviceTicket != null ) { formFieldParam . setServiceTicket ( this . serviceTicket ) ; } if ( maskValueParam == null || maskValueParam . trim ( ) . isEmpty ( ) ) { maskValueParam = "" ; } if ( formFieldParam != null ) { formFieldParam . setTypeAsEnum ( Field . Type . Text ) ; formFieldParam . setTypeMetaData ( FieldMetaData . Text . MASKED . concat ( maskValueParam ) ) ; } return new Field ( this . putJson ( formFieldParam , WS . Path . FormField . Version1 . formFieldCreate ( ) ) ) ; }
Create a new Text Masked field.

@param formFieldParam Field to Create.
@param maskValueParam The masked value. Example: (999) 999 xxx.
@return Created Field.
Create a new Text Masked field .