IS ti posible to get two type of forms first one for only sign in users and second one for all no sign in?
I usign now this for allowing only signed-in users to submit a ticket:
but how to add Conditional Statement for anonymus users add allow to acce to specific form?
<div class="container new-request-page">
<div class="container-inner">
{{#if signed_in}}
<h1>
{{#if follow_up}}
<span class="follow-up-hint">
{{follow_up}}
</span>
{{/if}}
</h1>
<div class="row clearfix">
<div class="column column--sm-8 column--sm-offset-2">
<h1 class="new-request-title">{{t 'submit_a_request'}}</h1>
<p>
{{#if parent}}
<p>
<span class="follow-up-hint">
{{follow_up}}
</span>
</p>
{{/if}}
<div class="new-request-form" id="main-content">
{{request_form wysiwyg=true}}
</div>
</div>
</div>
{{else}}
<div class="note" text-align="center">
<center>
<em class="fas fa-lock" style="font-size: 4em;"> </em>
<br>
<br>
<h2>
<p>{{dc 'tworzenie_nowych_zgloszen'}}<br><br> Pierwszy raz w Centrum Wsparcia?
</h2>
<p/>
<strong>
<h3>
<a class="btn btn--primary" href="https://xxx.zendesk.com/auth/v2/login/registration?auth_origin=1900000327033%2Ctrue%2Ctrue&brand_id=1900000327033&return_to=https%3A%2F%2Fpomoc.xxx.pl%2Fhc%2Fpl%2Frequests%2Fnew&theme=hc" target="_self">
Zarejestruj się
</a>
</h3>
</strong>
<br>
<a class="btn btn--primary" href="https://xxx.zendesk.com/hc/pl/signin?return_to=https%3A%2F%2Fxxx.zendesk.com%2Fhc%2Fpl%2Frequests%2Fnew" target="_self">
Zaloguj się
</a>
<a class="btn btn--primary" href="https://xxx.pl/kontakt/" target="_blank">
Zapytaj o ofertę na opiekę techniczną
</a>
</center>
</div>
}}
{{/if}}
</div>
</div>
You can add a different button in the
{{else}}statement then once it's clicked, anonymous users will be redirected to the form of your choice. You may try the steps here without the pre-filled values.Best,
Paolo | Technical Support Engineer | Zendesk