Repeat Textarea - Disable JS- Github 12-1-16

nbradshaw

Active Member
I have a repeat group with 2 elements (datetime, textarea).

I am wanting to disable both elements when data has already been entered & saved. (But retain the saved information on future saves).

I have enabled the feature in the JS Element Settings to Disable my repeat textarea OnLoad when my repeat textarea=''

However, this is not working as expected. When I do this - All repeat textareas are disabled when there is already 1 saved repeat textarea.

I believe I have identified why this occurring:
The repeat data (after the initial repeat_element_0 is saved) is retainingrepeat_element_0's value on page load (even though it is not showing in the textarea. I have captured this in Firebug.

BUT - if I save the empty repeat element - it behaves correctly - because the value now=''
(Please see screenshot)
 

Attachments

  • Capture1.JPG
    Capture1.JPG
    162.2 KB · Views: 141
  • Capture2.JPG
    Capture2.JPG
    61.2 KB · Views: 133
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top