Tony
going with the flow Posts:45
|
08-29-2013 10:58 AM |
|
I created a simple form with 3 fields. On of the fields is set to Read Only. I then have a Completion Event of Email with all the fields. Only the non-Read Only fields are output. I need the 1 field to be read only. How can I make this work?
Thanks, Tony |
|
|
|
|
Candace
river guide Posts:2431
|
08-29-2013 01:05 PM |
|
Hi Tony, Dynamic Forms will display the form values upon submission if you have the tokens in the email. So, if you only want the non-read-only fields to render on the email, just don't include the token for the read-only field. Hope that helps. Thanks! Candace
|
|
|
|
|
Tony
going with the flow Posts:45
|
08-29-2013 01:13 PM |
|
I'm sorry I wasn't clear enough. I did include all the fields in the email but the read only field does not display. |
|
|
|
|
Candace
river guide Posts:2431
|
08-29-2013 02:21 PM |
|
Oh, that's strange. Does it have any other settings enabled? If you temporarily remove the read-only setting, does it render correctly on the email? Also, on the email, does it show as blank or does it show the token?
|
|
|
|
|
Tony
going with the flow Posts:45
|
08-29-2013 02:30 PM |
|
I have no other settings enabled. If I remove the RO setting it renders correctly. It is completely blank in the email. |
|
|
|
|
Candace
river guide Posts:2431
|
08-30-2013 09:09 AM |
|
Hmmm....I'll have to review this later and see if I can duplicate on my end. is this field visible to the user? Does it need to be? Is the value static and the same for all users? I wonder if you, instead, set it as a hidden field and remove the RO setting.
|
|
|
|
|
Tony
going with the flow Posts:45
|
08-30-2013 11:30 AM |
|
Yes, it does need to be visible as ultimately it will be a calculated result from user input data. The value is dynamic as it is calculated and included in the email. |
|
|
|
|
Candace
river guide Posts:2431
|
08-30-2013 12:14 PM |
|
Ahh, I see. Please check out Demo 20 from www.datasprings.com/formdemos We created this demo with a very similar objective where we have hidden fields that are used for calculations but we also use inner.HTML for the totals and subtotals to display values to the user and not allow them to change it. The read-only interferes with this process and is one of the reason why we use this technique for these cases. Hope that helps! Candace
|
|
|
|
|
Tony
going with the flow Posts:45
|
09-07-2013 07:40 AM |
|
Candace, I ended up using a Label control and setting it per Ryans' response to my other thread about setting a Label control text: var LabelID = $(Label_FieldID); document.getElementById(LabelID).innerHTML = 'TEST'; Thanks, Tony |
|
|
|
|