question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mandate the sub-label/sub-choices in Conditional Classification

See original GitHub issue

This is my custom template below:

<View>
  <Header value="Listen the audio"/> 
  <Audio name="audio" value="$audio"/> 
  <Choices name="ontology" toName="audio" zoom="true" showInLine="true" hotkey="ctrl+enter" choice="multiple">
    <Choice value="domestic_sound" />
    <Choice value="speech" />
  </Choices>


    <View visibleWhen="choice-selected" whenTagName="ontology" whenChoiceValue="domestic_sound">
       <Header value="Select a Choice below for domestic_sound"/>
        <Choices name="domestic_sound_choice" toName="audio" showInLine="true" hotkey="ctrl+enter" choice="multiple" required="true"> 
        <Choice value="CLICKING" />
        <Choice value="WOOD" />
        <Choice value="FRYING" />
        <Choice value="SHUFFLING_CARDS" />
        </Choices>
    </View>

This is the template for conditional classification.

I want to make the sub-classes mandatory if and only if the corresponding choice is selected in main labels.

main labels are below:

<Choices name="**main_choices**" toName="audio" zoom="true" showInLine="true" hotkey="ctrl+enter" choice="multiple">
    <Choice value="domestic_sound" />
    <Choice value="speech" />
  </Choices>

So, If I select domestic_sound in the above choices, then only sub-choices under domestic_sound should be mandatory.

When I am adding required=" true" in the domestic_sound choices, It mandates the choices under domestic_sound without even selecting it in the main labels.

Can anyone please help me to get this functionality or behavior? Thanks!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
iqbalfarzcommented, Aug 26, 2022

Hi @makseq, It’s working in the latest version of LS. Thanks!

0reactions
makseqcommented, Aug 27, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 13 - Vaccination Mandates: The Public Health ...
This chapter describes the impact of vaccines in dramatically reducing infec tious diseases in the United States, the role of mandatory vaccination in...
Read more >
Classification with unknown class-conditional label noise on ...
Abstract. We investigate the problem of classification in the presence of unknown class-conditional label noise in which the labels observed by ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found