Page 1 of 1

Formbuilder and Formbrowser

Posted: Sat Mar 14, 2020 8:43 pm
by janvl
Hi,

I am trying to figure out how I can fill a textfield with a date that does not change when i edit the record in formbrowser.

I used a "computed field" with php-code and that does fill the field but I would need to copy this in a textfield that does not change when i edit the record.

Is there a way with formbuilder to copy the value from one field into another when submitting the content?

Regards,
Jan

Re: Formbuilder and Formbrowser

Posted: Sat Mar 14, 2020 11:01 pm
by DIGI3
Couldn't you add a hidden field and populate it with javascript on change/submit?

Re: Formbuilder and Formbrowser

Posted: Sat Mar 14, 2020 11:08 pm
by janvl
Thanks DIGI3

I will try that. I am still experimenting, it is supposed to be a very very simple order-system.

Take in a dress/trousers/etc to repair, print a number/name/etc on a ticketprinter to attach to the dress/trousers/etc.

When ready and the customer comes for it mark it as returned with the date.

It is almost ready.

Regards,
Jan

Re: Formbuilder and Formbrowser

Posted: Sun Mar 15, 2020 1:39 pm
by janvl
Works!

The trick with the hidden field did it.

I run a UDT in a hidden field that produces a number like 200315-1435.
In a computed filed I refer to '$fld_43' (in my case 43 - the number of the hidden field)

After that, I could edit in Formbrowser without changing the number 200315-1430 when submitting changes.

Not even needing Javascript, great, thanks for the hint!

Regards,
Jan