Skip Navigation

[Closed] wpv-conditional

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Christopher Amirian 1 year, 9 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2591911

hi,

I have this conditional output somewhere (in a form actually)
and nothing is output.
#############
[wpv-conditional if="( '[page_title]' eq 'compte-membre-company-etape2' )" debug="true"]
[cred-form-submit field='submit' name='submit' label="J'ai terminé mon inscription !" class="FV_bouton_petit_bleu btn"]
[/wpv-conditional]

[wpv-conditional if="( '[page_title]' ne 'compte-membre-company-etape2' )" debug="true"]
[cred-form-submit field='submit' name='submit' label="Enregistrer" class="FV_bouton_petit_bleu btn"]
[/wpv-conditional]

Test :
[page_title]
[wpv-conditional if="( '[page_title]' = '[page_title]' )" debug="true"]
HELLO ALWAYS TRUE
[/wpv-conditional]
#############

it should always display something because the conditions are the negation of eachother, but it doesn't output anything.
the shortcode used "[page_title]" is returning "compte-membre-company-etape2" ..... as you can see on the page :
hidden link

... and the debug is not showing anyting.....
why ?

thanks

#2591979

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

May I know where you ad those conditionals? Inside a Form in expert mode?

If yes please check this erratum:

https://toolset.com/errata/form-content-reset-if-form-editor-section-collapsed-when-saving/

Make sure you update Toolset and toolset addons:

- IMPORTANT STEP! Create a backup of your website.
- Go to "WordPress Dashboard > Plugins > Add new > Commercial (tab)".
- Click the "check for updates" button.
- Update Toolset and its addons there.

I also checked the link you shared and it does not show any of the stuff you mentioned. Maybe I see it wrong?

The topic ‘[Closed] wpv-conditional’ is closed to new replies.