public Field updateFieldTextMasked ( Field formFieldParam , String maskValueParam ) { if ( formFieldParam != null && this . serviceTicket != null ) { formFieldParam . setServiceTicket ( this . serviceTicket ) ; } if ( maskValueParam == null || maskValueParam . trim ( ) . isEmpty ( ) ) { throw new FluidClientException ( "Masked value cannot be empty." , FluidClientException . ErrorCode . FIELD_VALIDATE ) ; } if ( formFieldParam != null ) { formFieldParam . setTypeAsEnum ( Field . Type . Text ) ; formFieldParam . setTypeMetaData ( FieldMetaData . Text . MASKED . concat ( maskValueParam ) ) ; } return new Field ( this . postJson ( formFieldParam , WS . Path . FormField . Version1 . formFieldUpdate ( ) ) ) ; }
Update an existing Masked Text field .