Add a review if it doesn't exist or update it if it exists

Currently when I press the “write a review” button it creates a new record if the record exists it creates another record.

I want the app to update the record if it exists
Thanks

Hi @Gazzaz

I’m not 100% sure what you mean. Could you grab a screen recording (I recommend Loom) to help us visualise it?

Do your reviews have a many-to-many or one-to-many relationship with the record you want reviewed?

If so, you can have a rectangle and 2 buttons with visibility settings.

Here’s a beautiful example that I set up on my Online Learning LMS template:

The top group is displayed when there are 0 reviews between the course and the user. The bottom group displays when there is a review.

In the first group, when clicking the star rating, it creates the review and links to the “Rating Create” screen. In the 2nd group, when clicking the edit button, it takes them to the “Rating Edit” screen.

1 Like

Just adding a post :slightly_smiling_face: : Star Rating components doesn't work with database - #8 by dilon_perera ( Ratings )

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