Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document 'no_nutrition_data' #70

Open
Tracked by #7446 ...
teolemon opened this issue Mar 22, 2022 · 2 comments
Open
Tracked by #7446 ...

Document 'no_nutrition_data' #70

teolemon opened this issue Mar 22, 2022 · 2 comments
Labels

Comments

@teolemon
Copy link
Member

teolemon commented Mar 22, 2022

Story

  • Document 'no_nutrition_data'

Screenshot

image

Code

<div class="fieldset" id="nutrition"><legend>Nutrition facts</legend>
            <!-- extra field suffixed with _displayed to allow detecting when a box is unchecked -->
            <input type="hidden" name="no_nutrition_data_displayed" value="1">
            <input type="checkbox" id="no_nutrition_data" name="no_nutrition_data">
            <label for="no_nutrition_data" class="checkbox_label">Nutrition facts are not specified on the product.</label><br>

Part of

@g123k
Copy link

g123k commented Mar 23, 2022

To quote @stephanegigandet (openfoodfacts/openfoodfacts-dart#423 (comment)):

The possible values for the checkbox are in fact either "on" when it is checked, or "" (empty string) or not existing field when it is unchecked.

@teolemon
Copy link
Member Author

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants