I have a control on the Add New Record page. The control is populated from a look up. The data is auto inserted based on a dependency and works fine.
I however want to hide the control from the Add New Record page but still maintain the data getting added to the control. I need to capture the information but do not want the end user to see it.
I found this code on the forum and it hides the control fine but will not save data when adding a new record. It seems the only time data is saved is when the control is visible.
{if $admin_user}
<TR>
<TD class=shade width=150>Horsepower</TD>
<TD width=250>
{build_edit_control field="Horsepower" value=$value_Horsepower mode="edit"}
</TD></TR>
{/if}
and
smarty.Add "admin_user", SESSION("UserID")="admin"
The data is on the Add new billing form, the components I am trying to capture is the rate I bill the client based on the Client selected when the user selects one. IE: Client A is selected, and Client A has a rate of $100, I need to store the $100 for that client for that day but I do not want the end user to see this.
Open to any other suggestions.
Fen