Fitness Tracker Form Needed

By: Haroon Ahmad | Asked: 02/13/2023
ForumsCategory: Paid Help WantedFitness Tracker Form Needed
Haroon Ahmad asked 1 year ago

We are trying to build a fitness tracker form using formidable form whcih should show the input data on the frontend to the logged in user only. We are confused using views how we can utilize the view section and display the data back to the user they have submitted. I am attaching few screenshot that will give you the basic idea of what we're trying to achieve here. once data is input by the user it should show them back in another form as current week progress as well as previous all week progress collectively.

Attachments
2 Answers
Bobby Clapp answered 1 year ago

Watch the video here to learn how to build a view -> https://formidableforms.com/knowledgebase/create-a-view/

You'll probably end up coding (html/CSS) out a view and then would use formidable stats to collectively total/average things out. You'll use this shortcode for that -> https://formidableforms.com/knowledgebase/add-field-totals-and-statistics/

One thing you need to understand with views is dynamic data and static data. Static data is actual numbers or values. Dynamic data is a variable that dynamically pulls a static value from the database based on a static or dynamic entry value.

Example: [frm-stats id=36 type=total user_id=current]

The above code captures the sum in which a form was filled out in which field ID 36 was filled in and displays that value back for the current user only. That might be your "How many 10-min stretching sessions did you do?" value.

It takes some time and learning, but it's completely flexible and fun to use.

Haroon Ahmad replied 1 year ago

I have managed to create the form on the form on the website but there is one or two things that we are not understanding is the Current week view as drop down. if its week 1 it should show only week 1 on top as drop down and next week it should be week 2 and week 1 is locked. Also how can we allow user to edit one field and add their own personal goal in the filed which can only be edited once and it shows them back.

Haroon Ahmad replied 1 year ago

I have managed to create the form on the form on the website but there is one or two things that we are not understanding is the Current week view as drop down. if its week 1 it should show only week 1 on top as drop down and next week it should be week 2 and week 1 is locked. Also how can we allow user to edit one field and add their own personal goal in the filed which can only be edited once and it shows them back.

Bobby Clapp replied 1 year ago

That is getting too complex by what Formidable forms can do by default. You would need to find a developer with PHP skills to help. <a href="https://formidable-masterminds.com/developers-directory/&quot; rel="noopener" target="_blank">https://formidable-masterminds.com/developers-directory/</a&gt;

You might find some hooks in the documentation, but implementing like you suggest might get complex. For the View, you'll have to come up with some strtodate function that works in the filter.

Example: <a href="https://stackoverflow.com/questions/20487745/strtotime-to-find-current-week-date-for-monday-and-saturday-php&quot; rel="noopener" target="_blank">https://stackoverflow.com/questions/20487745/strtotime-to-find-current-week-date-for-monday-and-saturday-php</a&gt;

Haroon Ahmad answered 1 year ago
here is the editable field in this case Eat well is added by the user.
Attachments

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right