- 
                Notifications
    You must be signed in to change notification settings 
- Fork 3.1k
Closed
Labels
editorLabel Studio FrontendLabel Studio Frontendlabelingproblembug or something isn't workingbug or something isn't working
Milestone
Description
As described in Label Studio — Choice Tag for Single Choice Labels, I would like to define a choice that will be selected by default.
I tried to define selected in the Choice tag, but it doesn't work as expected.
<!-- { "data": {"text": "Esse é um exemplo estúpido, então obrigado por nada a!@#!@."}
} -->
<View>
    <Text name="text" value="$text" />
    <View style="box-shadow: 2px 2px 5px #999; padding: 20px; margin-top: 2em; border-radius: 5px;">
        <Header value="Is this text toxic?" />
        <Choices name="is_toxic" toName="text" choice="single-radio" required="true" showInLine="true">
            <Choice value="Yes" hotkey="y" selected="true" />
            <Choice value="No" hotkey="n" />
        </Choices>
    </View>
    <View visibleWhen="choice-selected" whenTagName="is_toxic" whenChoiceValue="Yes">
        <Header value="Select categories" />
        <Choices name="Sentiment" toName="text" choice="multiple" showInLine="true">
            <Choice value="Identity Attack" />
            <Choice value="Insult" />
            <Choice value="Profane" />
            <Choice value="Racism" />
            <Choice value="Sexism" />
            <Choice value="Sexually Explicit" />
            <Choice value="Xenophobia" />
        </Choices>
        <Header value="There's a specific target?" />
        <Choices name="target" toName="text" choice="single-radio" showInLine="true">
            <Choice value="Individual" hotkey="I" />
            <Choice value="Group" hotkey="G" />
            <Choice value="Other" hotkey="O" />
        </Choices>
        <Header value="What words are toxic/offensive?" />
        <Labels name="BadWords" toName="text">
            <Label value="Curse words" hotkey="C" background="darkorange" />
        </Labels>
    </View>
</View>Expected behavior
I would like that the choice "Yes" in the first question can be selected automatically when labeling start.
Screenshots
Environment (please complete the following information):
- OS: Docker (Deployed in Heroku)
- Label Studio Version: 1.4.0
Metadata
Metadata
Assignees
Labels
editorLabel Studio FrontendLabel Studio Frontendlabelingproblembug or something isn't workingbug or something isn't working
