Formbuilder and Formbrowser

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
janvl
Power Poster
Power Poster
Posts: 947
Joined: Wed Aug 13, 2008 10:57 am

Formbuilder and Formbrowser

Post 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
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1629
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Formbuilder and Formbrowser

Post by DIGI3 »

Couldn't you add a hidden field and populate it with javascript on change/submit?
Not getting the answer you need? CMSMS support options
janvl
Power Poster
Power Poster
Posts: 947
Joined: Wed Aug 13, 2008 10:57 am

Re: Formbuilder and Formbrowser

Post 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
janvl
Power Poster
Power Poster
Posts: 947
Joined: Wed Aug 13, 2008 10:57 am

Re: Formbuilder and Formbrowser

Post 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
Post Reply

Return to “Modules/Add-Ons”