Creating a mood tracker + Journal to my Glide App

I want to create a daily journal and mood tracker to my app where a user can come in and for that day do the following:

  • Use a slider to select mood like the Apple mood tracker - this will record values from very unpleasant to very pleasant

There will also be a journal open text field then can choose to enter text

This data should be private and only be seen by the user. What is the best way to approach this.

If you want a slider you will have to build one using the Custom AI component.

Other than that, a standard Form with the Custom AI component and a Text Entry component should do.

For the data to remain private, make sure you have an email column in your table. Apply Row Owners to that email column. Then add a Special Value component to your form to pass the signed in user’s email into the email column when the form is submitted.

1 Like
  • Thanks I’ve created the mood slider using AI and have some follow up questions:
    I want the user’s email field and today’s date to be automatically added to the database without the users seeing this. I assume I do this with Special Values but I’m not able to find tutorials that cover how Special Values work - can you point me to this?
  • For the mood slider I’ve set this up using the AI component and now want it to transfer the following values to the datatable (i.e. Unpleasant, very pleasant etc) - what is the best way to connect this UI component to my data table?
  • I also would like that the mood slider has some text below it that shows what they have selected (i.e. Pleasant) so this updates dynamically based on their selection with the slider - how can I create this?

If it’s a regular form, it’s a type of component you add to the form just like adding any other component. If it’s a form container, the you select the values in the appropriate drop-down in the configuration panel on the right hand side is the builder.

The AI component should have added a variable in the data section that you can point to a column in the table.

Tell the AI that’s what you want.

1 Like

Okay I was able to get the slider to tranfer the score to the database but still not able to get the date to be input for just today’s date - attaching two screen shots of the data table columns and the layout not sure where I can configure it just share the data automatically as today.

That is a form container instead of a form, so it’s a little different. Select Form Container on the left hand side. On the right you should see a bunch of dropdowns for each column in the table your form is writing to. Select the dropdowns for email and date, and there you should see the special values.

1 Like

Thanks this has been resolved

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.