Hi, My requirement is such that the read-only field will be a derived field, visible to user. Say for example, I have a XML form with 3 editable fields, salutation & first name, last name and 1 read-only field Addressed To. Addressed To should be read only & derived from concatenation of above editable fields. Have to rule out hidden fields as this should be shown to the user.
Up till now, i have bn unable to find a solution to it. One soln could be to use html dom to add readonly attribute after the form is rendered, but thats my last option. Thanks, On Fri, May 21, 2010 at 8:43 PM, Jacques Le Roux <[email protected]> wrote: > Also if you want to show the value without changing it, you can use the > disabled=true attribute of the field element > > Jacques > > From: "Ankit Jain" <[email protected]> >> >> Hi Prasanthi, >> >> you have made text box read only & want to pass its value, then you have >> to send the value in hidden field. >> <display /> is used to display the value. >> >> <field name="partyId"><hidden/></field> >> >> And you have to make entry of this attribute in the service definition too >> as "IN" parameter then only you will get the value. >> >> -- >> Thanks & Regards: >> Ankit Jain >> Jr. Enterprise Software Developer >> Hotwax Media Pvt. Ltd. >> www.hotwaxmedia.com >> >> >> >> prasanthi_ofbiz wrote: >>> >>> Hi >>> In Ofbiz application I want to make a text box read-only and the value in >>> side that text box should pass to the database through service. I used >>> <display/> then not able to pass forward. >>> >>> Thanks, >>> Prasanthi >> >> > > -- Regards, Varun Bhansaly
