Gossamer Forum
Home : Products : DBMan : Customization :

A simple one i hope

Quote Reply
A simple one i hope
first of i wanna say thanks to every one who help with last problem.

Ok so what i want this time:

I want on my form is adding for the field userid to be shown and when modifing it to be hidden

can you help?

Thanks again

Davidd Sargent

Quote Reply
Re: A simple one i hope In reply to
I don't know whether this is what you want but I would do this:

Copy the subroutine (sub html_record_form) and paste it onto the same file and then rename it to something like (sub html_modify_record_form). After that, modify the line that contains the userid field to <input type=hidden>. If you still want it to be shown but not modify, add $db_key just before the closing tags for the </tr></td>.

Then search for sub html_modify_form_record

Look for the line &html_record_form (%tmp);

change it to &html_modify_record_form (%tmp);

That's it.

Julian
Quote Reply
Re: A simple one i hope In reply to
that excatly what i needed thanks

davidd