event on load.... chronoforms 7

Hide a button in ChronoForms when creating a new record.

Overview

The button should only appear when editing an existing record, but the form lacked a condition to check if a record ID was present in the URL.
Use the button's "Run Condition" setting to hide it by checking if the URL parameter for the ID is empty.

Answered
ChronoForms v7
ec economyweb 14 Oct, 2021
Answer
Hello everybody,

I have a form that it can edit and update a record or create a new record. RUN PERFECT!!

Depends on vars url the form show field values or show fields empty.

https://management.wanderlustgs.com/component/chronoforms7/?chronoform=ncustomers&gpage=edit_start_page&id=75
https://management.wanderlustgs.com/component/chronoforms7/?chronoform=ncustomers&gpage=edit_start_page&id=

The form has a "button" for to do other thinks but only can show it when I have editing a record.

I need to hide a button if id="" , that is when create new record.

At the moment
I add a event for to hide button but I dont find one option to compare the "id" value.
id field is a hide field.

Thanks
ec economyweb 19 Oct, 2021
In button add "data -> run condition"
{data:var_url} != (empty)
Post a Reply