Hello everyone so i have an issue i want to output a string on my frontend the data is showing on my response on the network tab and i have been trying to show it on the frontend after a form is submitted, but it is not working but the value is showing on the response on the network tab. i will send screenshots
this is my wappler code and the paragraph is where i want to display the scene_type after the form is submitted
so guys i need your help what am i doing wrong
You either use dmx-text attribute or you use {{ }}, you don't use both at the same time. Also, I think only the dmx-text expression is correct in your screenshot
@Apple it is not working i have tried all options and it is not working, it is just so frustrating
so i have tried
<p>{{scene_type}}</p>
<p>Scene Type: <span dmx-bind:text="serverconnect1.data.scene_type"></span></p>
<p dmx-text="serverconnect1.data.
scene_type"></p>
and none is working what can i do i have exhausted all my strength
If the Binding is not in a Repeat it should not appear as:
{{binding}}
It should be:
{{get_example_query.data.get_example.binding}}
Is what you are trying to display in a Repeat?
Also as pointed out you need to remove the below from the paragraph tag!
dmx-text="get_example_query.data.get_example.binding"
And it should look like:
<p>{{get_example_query.data.get_example.binding}}</p>
Or in your case:
<p>{{serverconnect1.data.scene_type}}</p>
no not a repeat
Then how did you end up with {{scene_type}}?
Please see the Documentation Ameh everything (including the basics) is covered there. You seem to be jumping ahead of yourself. Despite the Documentation reflecting a different UI the basics are exactly the same. You should be using:
<p>{{serverconnect1.data.scene_type}}</p>
i just tried your solution, still nothing at the moment @Cheese
You have no load set? This means the Action will not load thus no data will be displayed (unless you are triggering it to load in some way?). Also your Server Action is called predict_scene.
Please try binding the data from this Action and untick 'No Auto Load'.
Where are you getting serverconnect1 from? None of your data is connected to this Action it does not exist on your page...
okay the api action works after the form is submitted so the scene_type is a result of hitting the endpoint url, so i am confused about the load set, i am sorry about that
i am really trying to get you, please could you explain more
Ameh your page is very confused indeed. You have the same Action bound to your form as you are requesting in the page?
yes that is correct
I'd suggest following the documentation Ameh it is all there. Forms, Actions, and Bindings. It is vital you understand the basics my friend. You do not need to apologise we have all been where you are. You will get there in the end but you must review the documentation.
i have been on this documentation for a while i also trained a gpt model on it
but i can't just connect the dots, i could have decided to store the scene type in a database and output it from there but that will just be stressful, i would really appreciate a hint can do me good