Forum Replies Created
-
AuthorPosts
-
Tobias Haas
ParticipantHi Long
Your documentation would be much better if you showed a lot more examples.
for me as a beginner it is a torture ...And how can I set the locale?
I want to display the days in German language.thank you for your help ๐
Tobias Haas
ParticipantAnd how can I set the time to UTC + 1?
August 1, 2021 at 4:57 AM in reply to: Custom fields in Dynamic Tabs - OxyExtras - Oxygen Builder #29821Tobias Haas
ParticipantI hope the Oxygen integration will come soon! That would be great!
Tobias Haas
ParticipantHey Long, thank you very much!
Good to now! ๐I created a Service Request.
Thanks
Tobias Haas
ParticipantHey Long,
I have now created a group- Label: ingredient_group
- ID: ingredient_group
- Type: Group
- Cloneable: yes
In this group I have added 4 fields.
- Label: Number of ingredients
- ID: number_ingredients
- Type: number
- Label: Unit of measure
- ID: unit
- Type: Select Advanced
- Choises: l, ml, g, kg...
- Label: ingredient
- ID: ingredient
- Type: Text
- Label: calculation
- ID: calculation
- Type: number
- Read only: yes
Outside of the Group i have another Custom Field
- Label: portions
- ID: portions
- Type: Number
Im using the Oxygen Builder, so i added this Snippet to the Plugin "Code Snippets"
add_action ( '', function() { ?> <script type="text/javascript"> jQuery(document).ready(function($) { $('body').on('keyup', '#portions, #number_ingredients', function() { var portions = $('#portions').val(); var number_ingredients = $('#number_ingredients').val(); var calculation = portions * number_ingredients; $('#calculation').val(calculation); }); }); </script> <?php });Unfortunately it does not work... What am I doing wrong?
Kind Regards and thanks for your Help!
Tobias Haas
ParticipantHey Long, thank you very much for your answer.
But what do I do if I want to name my ingredients and specify the number of tomatoes, for example, that are calculated at the same time as the servings?1x tomato * number of servings
If I define the field as a Number, I can no longer enter the name of the ingredient.
-
AuthorPosts