Recipes and shopping list

Tagged: ,

Viewing 4 reply threads
  • Author
    Posts
  • December 4, 2023 at 9:24 AM #50204

    Sweet Memories
    Participant

    Good morning.
    New to TapForms, I would like to know if it is possible to create a recipe book and then, by selecting the desired recipes, make a shopping list.

    Thanks for your help.

    December 4, 2023 at 9:36 PM #50205

    Brendan
    Keymaster

    Hi,

    If you setup your Recipes form with a relationship to an Ingredients form, then you could select some recipes to print to make a PDF file that you could browse while you’re shopping. Not exactly an interactive experience though like you might get from a dedicated shopping / recipes app. But it would be possible.

    Another way might be to write a Form script that lets you select specific recipes and then inserts the ingredients for those recipes into another form that contains your shopping list items. This would be an involved script to write though.

     

    December 5, 2023 at 12:04 AM #50206

    Sweet Memories
    Participant

    Hi Bredan,

    Thank you for your help and your lead.

    So perhaps if we take another approach: would it be possible from a recipe to send the list of ingredients to Apple Reminder in a Shopping List section already integrated?

    Thanks

    December 5, 2023 at 3:56 PM #50208

    Brendan
    Keymaster

    You could write a Script you could run that takes the shopping list values and adds them to the Reminders.

    function Add_And_Update_Reminder() {
    // Create new Date instance
    var due_date = new Date();
    
    // Add a day
    due_date.setDate(due_date.getDate() + 1);
    var event_info = {"list_name" : "Work",
    "title" : "Test Event",
    "priority" : 1,
    "notes" : "test note",
    "repeat_option" : 2};
    
    var identifier = Utils.addToReminders(event_info, due_date);
    console.log(identifier);
    event_info["title"] = "Hello Reminder 2";
    Utils.updateReminder(identifier, event_info, due_date);
    }
    
    Add_And_Update_Reminder();
    • This reply was modified 11 months, 2 weeks ago by Brendan.
    December 5, 2023 at 4:00 PM #50210

    Brendan
    Keymaster

    You could use the "notes" property of the reminder event_info to inject your ingredients.

Viewing 4 reply threads

You must be logged in to reply to this topic.