We recently helped someone with creating a progress at the top of their details page to show status and what’s remaining based on a field value.
Something along these lines:
If this can be beneficial to you as well, here’s the how to implement this. This requires a few steps but some copy and paste can easily get you there.
We have a radio field with 4 options. Take note of the field id (field_222 in my case):
Inside your details page add an HTML component and paste the following code into the source. Be sure to update this to match the field values you have in your app.
@moe this is really helpful. Would it be possible using a standard dropdown with “inline edit” enabled, instead of a radio field? It would be fine if we had to refresh the page for it to update.
It would even be ok if it didn’t update in real time, but instead just reflected the corresponding value of our “status” field. Our projects have long lifecycles, so the status doesn’t update all that often. What would the JS look like for that to occur?
Yes, the Component ID is for the Details Component
Correct, jQuery is loaded into every Tadabase app by default without the need to put anything in the custom Header/Footer code
One common mistake I see that maybe you can check is to make sure to put the HTML code in the Source Code and not within the main part of the HTML Component.
It works, as it is supposed to. I made a stupid mistake in the spelling of the field values - this is why it didn’t work. It must be exactly the same in both components.
Hello I just did my best about following your instructions. but by the end isn’t worked. I just put the right name of the fiel and also the component name. but still not working. could be the version of the site?