
egilley
Members-
Content Count
19 -
Joined
-
Last visited
About egilley
-
Rank
Member
-
Dropping Data Into A Hidden Field
egilley replied to egilley's topic in User JavaScript and CSS Discussions
JEllington - THANK YOU!! Ohmigoodness you saved my day!! Thank you so much!! -
Dropping Data Into A Hidden Field
egilley replied to egilley's topic in User JavaScript and CSS Discussions
kRv, I appreciate all the trouble you went to, to set up an example page for me but here I am almost two weeks later and I still have not solved this issue. I'm so sorry, but I don't understand what you're showing me and how it will help me with the javascript and getting the statement I want to drop into a hidden field. I have 156 fields and 156 statements and I can't have them all "showing" on the datapage I'm creating. My boss wants them hidden and I can hide them on the submission page - but there is a limit to the size of each datapage and hiding them there put me past that limit. -
Dropping Data Into A Hidden Field
egilley replied to egilley's topic in User JavaScript and CSS Discussions
I'm still having the issue with not being able to save data into a hidden field - unless it's within a submission page, then it works fine. -
Dropping Data Into A Hidden Field
egilley replied to egilley's topic in User JavaScript and CSS Discussions
kRv, thank you so much for your input, I appreciate you taking the time to give me feedback!! In this particular case, it works as a numeric value, but you just helped me solve another problem!! I was getting a NaN when creating a variable number to add to a static date - and so I used your suggestion and it works perfectly now! Thank you!! -
Dropping Data Into A Hidden Field
egilley replied to egilley's topic in User JavaScript and CSS Discussions
Update: Since both were dependent upon the same "if," I moved the building of the statement into the submission form and allowed it to write to the hidden field there. Works perfectly. I would still like the answer though!! Is there something I need to do differently, to write to a hidden field in a detail datapage? -
In two separate dataforms I'm trying to do pretty much the same thing - and one works and the other doesn't! I don't know what I'm doing wrong. In my submission form, I have this: <script> function test(){ var clientrate5 = parseFloat(document.getElementById("InsertRecordcustomer_rd5").value); var otarate5 = parseFloat(document.getElementById("InsertRecordotaH_rd5").value); if (clientrate5 > otarate5) { document.getElementById("InsertRecordotaH_rd5").style.background="lightpink"; document.getElementById("InsertRecordissue_5_h").value = 1; }else{ document.getEl
-
Sigh... I said, "I need this URL link to open a new target window." And this doesn't do that. Any ideas?
-
I took what she sent me and made a couple tweaks - and it worked, YAAAAAY!! In case anyone is interested, here is the script (inside an HTML block) that worked: <p id="demo"></p> <script> function test(){ var t1=document.getElementsByName("InsertRecordCustomer_URL")[0].value; str="CUSTOMER URL"; var result=str.link(t1); document.getElementById("demo").innerHTML=result; } document.getElementsByName("InsertRecordCustomer_URL")[0].onchange=test; </script>
-
Well, I got the email. She sent me a script to use. Still didn't work. OMG.
-
Thanks, but that didn't work either. After hours of struggling with this silly syntax, I called Support and she pointed out that I needed a function to call the cascade dropdown after it populates. So she tried this... <script> var clientweb; function test(){ var clientweb = document.getElementsByName("InsertRecordCustomer_URL")[0].value; } document.getElementsByName("InsertRecordCustomer_URL")[0].onchange=test; </script> But still could not get a working URL to display on the page. She's going to email me ... eventually, LOL. I can't believe how many hours I
-
Been tearing my hair out trying to find the right syntax. Tried this: <SCRIPT LANGUAGE="JavaScript"> var clientweb = (document.getElementsByName("InsertRecordCustomer_URL")[0]) document.write(clientweb) </script> Same result.
-
I'm trying to display the results of a cascading dropdown box. In an HTML block, this seemed to me like the simplest of tests: <script type="text/javascript"> clientweb = document.getElementsByName("InsertRecordCustomer_URL")[0] document.write(clientweb) </script> but I'm getting this: [object HTMLSelectElement] Also, once I get the value of the field to display, I plan to make it a clickable URL - would appreciate any input on that, but I'm not even there yet, still just trying to just access the data! Help please?
-
That's it! OMG that was so easy! I feel like I should have known that, somehow?! Thank you!
-
I am trying to show graphics in a Submission Form, based on specific data, and so i'm inserting HTML block with "if" JS's... They work perfectly when the data is already saved in the current table. I'm using: var cb_punchin = '[@field:L1_time_in]'; But that doesn't work if the data is coming in from another page into a hidden field in my submission form. That data hasn't been saved in the current table yet. Is there a way to access saved data from a different table? Or a way to grab the data from the external data coming in? I'm learning JS in little bites... help with this
-
Happily, it seems to have been resolved. Whew! Thanks to the Caspio team for working quickly!