fluid-ws-java-client/src/main/java/com/fluidbpm/ws/client/v1/form/FormFieldClient.java
public Field updateFieldMultiChoicePlain(
            Field formFieldParam,
            List<String> multiChoiceValuesParam) {
        if(formFieldParam != null && this.serviceTicket != null) {
            formFieldParam.setServiceTicket(this.serviceTicket);
        }

        if(multiChoiceValuesParam == null ||
                multiChoiceValuesParam.isEmpty()) {
            throw new FluidClientException(
                    "No Multi-choice values provided.",
                    FluidClientException.ErrorCode.FIELD_VALIDATE);
        }

        List<String> beforeAvail = null, beforeSelected = null;
        if(formFieldParam != null) {
            formFieldParam.setTypeAsEnum(Field.Type.MultipleChoice);
            formFieldParam.setTypeMetaData(FieldMetaData.MultiChoice.PLAIN);

            if(formFieldParam.getFieldValue() instanceof MultiChoice){
                MultiChoice casted = (MultiChoice)formFieldParam.getFieldValue();
                beforeAvail = casted.getAvailableMultiChoices();
                beforeSelected = casted.getSelectedMultiChoices();
            }

            formFieldParam.setFieldValue(new MultiChoice(multiChoiceValuesParam));
        }

        Field returnVal = new Field(this.postJson(
                formFieldParam, WS.Path.FormField.Version1.formFieldUpdate()));
        if(formFieldParam != null){
            formFieldParam.setFieldValue(new MultiChoice(beforeSelected, beforeAvail));
        }

        return returnVal;
    }
public Field updateFieldMultiChoicePlain(
            Field formFieldParam,
            List<String> multiChoiceValuesParam) {
        if(formFieldParam != null && this.serviceTicket != null) {
            formFieldParam.setServiceTicket(this.serviceTicket);
        }

        if(multiChoiceValuesParam == null ||
                multiChoiceValuesParam.isEmpty()) {
            throw new FluidClientException(
                    "No Multi-choice values provided.",
                    FluidClientException.ErrorCode.FIELD_VALIDATE);
        }

        List<String> beforeAvail = null, beforeSelected = null;
        if(formFieldParam != null) {
            formFieldParam.setTypeAsEnum(Field.Type.MultipleChoice);
            formFieldParam.setTypeMetaData(FieldMetaData.MultiChoice.PLAIN);

            if(formFieldParam.getFieldValue() instanceof MultiChoice){
                MultiChoice casted = (MultiChoice)formFieldParam.getFieldValue();
                beforeAvail = casted.getAvailableMultiChoices();
                beforeSelected = casted.getSelectedMultiChoices();
            }

            formFieldParam.setFieldValue(new MultiChoice(multiChoiceValuesParam));
        }

        Field returnVal = new Field(this.postJson(
                formFieldParam, WS.Path.FormField.Version1.formFieldUpdate()));
        if(formFieldParam != null){
            formFieldParam.setFieldValue(new MultiChoice(beforeSelected, beforeAvail));
        }

        return returnVal;
    }
Update an existing Multi Choice field.

@param formFieldParam Field to Update.
@param multiChoiceValuesParam New available Multi-choices.
@return Updated Field.