Jump to content


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Melodybelle's Achievements


Newbie (1/14)



  1. Does anyone have an update on getting this to work with Ajax? I've tried instructions below but can't seem to get it to work. Also how do I get the link to the jquery.signaturepad.min.js? Thanks,
  2. yes, that is my intention, but I also tried it opening the first form (order form) in a regular browser window, and still it didn't work.
  3. Hi, I am having trouble with this suggestion. I have a popup window for creating a new order. In the new order window, I have a dropdown field that has a lookup to my client list. I wanted to create an option that if the client is a new client, my users could click on a link next to that field, to fill out the new client information. And then have that new record pass back as a parameter to the the order window. But it doesn't pass back. Both pages are located in the same domain. This is the code in the new client datapage in the success message <script> var element_value ='[@InsertRecordClient_Rec_ID]'; var element_text ='[@InsertRecordName]'; var new_item = window.opener.document.createElement("option"); new_item.text = element_text; new_item.value = element_value; window.close(); try { window.opener.document.getElementsByName('InsertRecordOrder_Client_Rec_ID')[0].options.add(new_item, null); } catch(ex) { window.opener.document.getElementsByName('InsertRecordOrder_Client_Rec_ID')[0].options.add(new_item); } </script> In the order window, in an html block <a onclick="window.open('add-client-limited.html' , 'popup', 'width=307,height=341,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false">Add Option</a> I would very much appreciate any suggestions as to what I'm missing. Thank you.
  4. I have a form that has two embedded forms (iframe datapage deployment) First subform is a submission form and the second a single record update form. I have a javascript function that is run by clicking on a button in the parent form that randomly selects a record whose parameters are then passed to both of the embedded forms. After the action is completed, I want to submit both of the embedded forms, without submitting or reloading the parent form, because the action can potentially be repeated. I have tried several options, but can't get the submit to work. Below is my javascript funtion as I have it now. The names of my iframe forms are Form a - embeddedsubmitform Form b - embeddedupdateform Any help would be greatly appreciated. Thank you <script> function getemprec() { var radget = document.forms[0].elements["cbParamVirtual5"]; //this is radio button that will determine the number of times the function will be run for (var i=0; i<radget.length;i++) { if(radget.checked) { var S1 = radget.value; } } var S2 = Number(S1); var E1 = document.getElementsByName("cbParamVirtual4")[0].length; //this returns a list of total records in the system var E2 = Number(E1); var E3 = E2/S2; var S3 = Number(E3); document.getElementById("InsertRecordNumber_of_Screens").value = S3; var scrtyp = document.getElementById("InsertRecordScreening_type").value; var scrdate = document.getElementById("InsertRecordDate_of_Screens").value; var T1 = document.getElementsByName("InsertRecordEmployees")[0].length; var n1 = Number(T1); var n2 = n1 - 1; var numb = Math.floor(Math.random()*n2); var numb2 = Number(numb); document.getElementsByName("InsertRecordEmployees")[0].selectedIndex = numb2; var reclist = document.getElementsByName("InsertRecordEmployees")[0]; var recvalue = reclist.options[reclist.selectedIndex].value; document.getElementById("cbParamVirtual2").value = recvalue; document.getElementById("embeddedsubmitform").src ='../pages/submit.html?SelEmp_Rec_ID='+recvalue+"&Screen_Type="+scrtyp; document.getElementById("embeddedupdateform").src ='../pages/update.html?DS_Emp_Rec_ID='+ recvalue+"&DS_date="+scrdate; document.getElementsByName("embeddedsubmitform").submit(); document.getElementsByName("embeddedupdateform").update(); } </script>
  5. I'm creating an appointment request form but I've run into a problem I can't seem to figure out. I'm trying to figure out how to filter a dropdown/picklist based on multiple criteria. Criteria # 1 Office location. - Client selects an office location first, so I used it as the parent field of my cascading dropdown Criteria # 2 Is the date of the requested appointment (Date_Requested) the current date or date in the future Criteria # 3 If the date of the requested appointment is the current date, filter by appointment slots greater than 2 hours. The dropdown list is another table in my system which contains the following fields. Office_Location Timeslot (ie. 8 am-9 am) Appt_Hour (this is the hour of the time slot, ie. 8 am - 9 am shows as 08) Current (this is a y/n field) Basically what I need to happen, is that when a user selects the facility and the requested date of appointment, *if the requested date is after today, they will be shown all appointment slots for that facility that are marked "N" in the Current field *if the requested date if for the current date, it will show only appointment slots that are marked "Y" in the current field and who are greater than 2 hours in the future. ie. if they request an appointment at 10:30 for the same day, the available appointment slots are 1pm-2pm, 2pm-3pm, etc. Any assistance would be greatly appreciated. Thank you
  6. I have a form that has a tiered pricing structure. The three field affected are: (Lookup 1) a fee schedule (this is a lookup field to another table), (decision 1) a checkbox choice field (if they select that specific product, and check the box, it marks it as yes, otherwise the product is no) and (Price 1) a price field (this is a text box). What I want to happen, is that when the checkbox for a specific product is marked yes, the system will go to the table for the fee schedule, find the price for that item and input that value into my price text field. Does anyone have a suggestion how I can do this? Any help is appreciated.
  • Create New...