tvout...?

How to return a simple value like '1' instead of full HTML when using tvout=view in ChronoForms v7.

Overview

The issue occurs because the form's full HTML structure is being output instead of just the intended value.
Place the desired output, such as 'echo 1;', within a PHP action in the form and ensure the script terminates with 'exit();' to prevent further HTML rendering.

Answered
ChronoForms v7
we webcrea 10 Jun, 2023
hi,

Wath's the equivalent of tvout=view for CC6 and tvout=ajax for CC5 please?

Chris
Max_admin Max_admin 15 Jun, 2023
Answer
in v7 ?
tvout=view
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
we webcrea 16 Jun, 2023
Yes in v7
with tvout=view
the page should return 1 if email exist
but it returns this

<div id="verification_index" class="ui container fluid form chronopage"><form action="https://www.siteweb.fr/index.php?option=com_chronoforms7&cont=manager&chronoform=verification&email=webmaster%siteweb.fr&tvout=view&gpage=index" method="post" id="verification-index" class="ui form G3-form" data-vmsgs="inlinetext" enctype="multipart/form-data" data-subanimation="1">
<input type="hidden" name="__cf_token" data-ghost="1" data-cftoken="1" value="04e48c7a-fc66-4582-afae-c433e123bbea" /></form></div>

this is not empty....
Max_admin Max_admin 10 Jul, 2023
1 Likes
try to use this code in a PHP action:

echo 1;
exit(); // or die();


does it work ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.