ASPX templates
Version 5.x > ASPX templates > Custom BizForm layout with hidden field View modes: 
User avatar
Member
Member
kheon-pixelmedia - 4/14/2011 10:51:53 AM
   
Custom BizForm layout with hidden field
We have a form that has a field marked to not show on the form, so when using the standard display things work but we've now styled it by using a custom layout and I'm unable to figure out how to get the hidden field populated now.

I've added the $$input:FieldName$$ to the custom layout and while it doesn't show (as expected) it isn't being populated any longer (by our custom code that sets the data manually in viewBiz_OnBeforeValidate.

Any advice?

User avatar
Member
Member
kentico_edwardh - 4/14/2011 2:50:18 PM
   
RE:Custom BizForm layout with hidden field
Hello,

Can you please post your code for the custom layout and the code you are using to populate the custom field so can take a look?

Best Regards,
Eddie

User avatar
Member
Member
kheon-pixelmedia - 4/14/2011 2:52:36 PM
   
RE:Custom BizForm layout with hidden field
No need, I fixed my issue by moving how I set my "hidden" field into the OnBeforeSave instead of having it in OnBeforeValidate. For some reason between setting it in OnBeforeValidate and OnAfterSave, my "hidden" column was being cleared. Not the case anymore.