How dim part of the form based on selection?
I have a php form that has a dropdown menu with two options: Standard or custom. If the visitor chooses Custom, I need the form remains to be "grey" on or off or something. I have no idea where to start. I did a quick search on the web and have not found much. I wonder if this may be something that handles JavaScript. Or perhaps an IF statement that causes the rest of the form to appear if custom is selected. (Please let me know if I am barking the wrong tree.)
I'll spend some time tomorrow night trying to find a solution, so I hope someone can point me in the right direction first.
Any advice would be welcome. If anyone knows a tutorial or explanation or a solution on the web, please send me a link.
Thanks to that!
John
PHP is a language server side, so the only way to do it with PHP would be to submit the form when this option is selected.
You must use JavaScript to disable form elements. The following script activates / deactivates on and outside form elements:
Put this in the head of your document and apply it on the menu drop down like a like this onchange event:
The first argument passed to the function toggleDisabled() is the ID of the form. The second argument is the name of a class you need to apply for the fields that you want to disable.
Tags: Dreamweaver
Similar Questions
-
Fill in the parts of the form based on the value entered in the first field
Hello
I am creating a form where user will enter the serial number of the equipment and I want him to click a button check beside him. When you click on the button check, I want to the Description of the object of the form field to be updated (this info is taken from a MySql DB backend). In addition, the text corresponding to the Site of equipment fields be filled. After reviewing all the information, user should be able to click on a button at the end of the form, and this information must be written in another table. I have attached an Insert record server behavior to the form. Essentially, I want to set a different action on the two buttons on the form. In my opinion it's the same one when we fill the registration form and based on our country, our State drop-down list is filled. It seems that this is doable, but I am not able to figure out how. I'd appreciate any help
Thank you
It's very simple if you understand the PHP code. Basically, you give the two buttons of different names and a logic conditional PHP allow you to control what happens. Call a button 'check' and the other 'insert '. If you use the POST method, you control the script like this:
if (array_key_exists('verify', $_POST) { // create a recordset to retrieve the details ready for display } elseif (array_key_exists('insert', $_POST) { // insert the details in the the new table }
If you aren't comfortable coding PHP yourself, the easy way to do it with Dreamweaver server behaviors must use separate sheets. On the first page, simply create a form for the user to enter the serial number. Use the GET method to send the serial number to another page. In the new page, use the parameter of URL containing the serial number to create a recordset to fill the form of insertion. Then apply a server behavior insert record using the POST method to insert the details in a new table.
-
How can I connect the form to the database?
How can I store the form data entered in the database in adobemuse? You please tell me any possibility of storage and provide authentication and make entries in adobemuse?
Hello
Please check the related threads
-
I accidentally hit the wrong command on my key board and now forms are white and black outlines. How can I change the forms to their original colors? (I do not change the color of shapes, I think that I just changed it in some weird setting)
Figured it out! It was in 'outline' mode I went to view > preview and are back to normal.
How can Illustrator Adobe - I get out of the preview display? -Graphic design change battery
-
How can I remove the hotmail homepage ads selection?
How can I remove the hotmail homepage ads selection?
Windows Live Hotmail is supported in this forum
http://answers.Microsoft.com/en-us/windowslive/Forum/Hotmail?tab=all -
Created the form based on the table - created new line - how to retrieve line editing?
Hello
Sorry for such a stupid question, but being new in APEX, I don't know much about how the end user on a form.
I have created a new form (not in a table), based on a table.
I ran the form and created a new line.
After the line was created, the form comes back ready to create another line (all the values in the fields).
How can I go on the recovery of the line, I added just to make a few changes?
Again, please forgive my ignorance.
Mason
Masong says:
Sorry for such a stupid question, but being new in APEX, I don't know much about how the end user on a form.
Or about how best to use this forum. Always include all the details of your environment and your application when you post a question so that we can provide a solution version - and context, case-specific: How to get the answers from the forum
I have created a new form (not in a table), based on a table.
I ran the form and created a new line.
After the line was created, the form comes back ready to create another line (all the values in the fields).
How can I go on the recovery of the line, I added just to make a few changes?
Ensure that the attribute key back to point in the line process of... The ARP process is defined to return the value of PK of records inserted in the element of key primary page and delete any Reset Page clearly session state process created by the wizard page.
-
How to remove the part of the form (line)
I have a form that is simply a straight line, I divided in 3 parts (so have 4 anchorpoints) and I want to remove the piece in the middle.
How can I do this?
Kind regards
Victor
Use the white arrow (direct selection tool). with nothing selected, click once on the segment. Click on delete.
-
How to add multiple roles: the form-based authentication.
Hi all
I want to do an authentication.in form based my web.xml I added a role called admin.
My question is how to add another role of 'support '.
my content from web.xm here
----------------------------
<? XML version = "1.0" encoding = "UTF - 8"? >
< web - app xmlns = "http://java.sun.com/xml/ns/j2ee" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" >
< Welcome-file-list >
Welcome < file > welcome.jsp < / welcome-file >
< / Welcome-file-list >
< security constraint >
< display name > constraint-0 < / name >
< web-resource-collection >
constraint-0 < web-resource-name > < / web-resource-name >
<>protected url-pattern / * < / url-pattern >
< / web-resource-collection >
<>auth-constraint
Admin > role name < < / role name >
< / auth-constraint >
< user-data-constraint >
> transport security < NONE < / transport-guarantee >
< / user-data-constraint >
< / security constraint >
<>login-config
FORM < auth-method > < / auth-method >
< form-login-config >
login.jsp < form-login-page > < / form-login-page >
failedlogin.html < form-error-page > < / form-error-page >
< / form-login-config >
< / login-config >
<-security role >
Admin > role name < < / role name >
< / security role >
< / web - app >
--------------------
my content here weblogic.xml:
--------------------------------------------
<? XML version = "1.0" encoding = "UTF-8"? >
< wls:weblogic - web - app xmlns:wls = "http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schemaLocation = "http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.2/weblogic-web-app.xsd" >
< wls:security - role-assignment >
< wls:role - name > admin < / wls:role - name >
< wls:principal - name > weblogic < / wls:principal - name >
< / wls:security - role-assignment >
< / wls:weblogic - web - app >
Any suggestion is appreciated...
Thank you
knockaertYou can use something like:
All *.xhtml MANAGER EMPLOYEE NONE ... MANAGER EMPLOYEE Note that you can also define several constraints, for example,
/employee/* * /manager/* MANAGER ... MANAGER EMPLOYEE -
In a form, how do the race to disappear in some parts of the form, but not all.
If I have a circle with a black line, but do want the semicircle to show the race how do? Thank you.
Make 2 objects, one to fill the other to stroke. We e digs the arrow tool to select one of the 4 points on a black circle and remove to get you STROKE black semicircle.
-
Can I customize the forms based on the responsibility on the same operating unit?
Hello!
I would like to ask if I can customize forms that are based on the responsibility on the same operating unit? Here's the scenario: order entry form, the descriptive flexfield is disabled on a responsibility more but must be activated for a particular responsibility. In addition, on most of the responsibilities, booking, picking up until shipping are manually, while on a special responsibility, I need to automate these steps.
Thanks in advance.
Jon
Hi Jon,
Yes. Forms can be customized at the level of the Site, the user, the responsibility.
For more information, please visit:
Form customizations in Oracle E-Business Suite (release 12) (Doc ID 395117.1)
How to make forms of customization (Doc ID 468657.1)
Information about the ability to customize the form of Oracle Applications 11i (Doc ID 279034.1)
Limits to customize forms (Doc ID 420518.1)
Thank you &
Best regards
Asif
-
Select a part of the form of Wav in Audition 3
Hi all -
Strange problem in Audition 3 that I can't solve. When I select a part of a form of wav on-screen - hearing doesn't let me choose EXACTLY the part of wav I want - it "jumps" a part of the wav beside the part, what I'm trying to select. In other words - I can't select smoothly just the part of the wav that I want, as I have always done, go all the way back to Cool Edit (and Audition 3 on another PC).
Is there a setting in Audition, which governs how much or how little a wav that can be selected? At this point, I can choose either less than the part of the wav that I choose-, or more than the part I want to choose. I can't select smoothly just the part of the wav I want to choose, as I have for 15 years.
Any help would be appreciated.
Bruce
Right-click on the timeline and see what you have selected in the serpentine path. You will certainly find that it is modified and differs from what you thought...
-
How can I reinstall the form fill
I am running ie 7 on VISTA, when I upgraded to IE7 I lost filling form. Please tell me how to reinstall.
Thank you
Thanks for the reply but that has not helped me. Maybe I was not very clear, I'm not 'AutoComplete' I try to reinstall the form fill. It works much better than the car completely and I found it very useful. So please help me to reinstall the FORM FILL IN THE IE TOOL BAR... Thank you
I guess that you upgraded to IE9 and you want to use the AutoComplete feature.
Press ALT + T and choose Internet Options. Box, click the content tab, and then click the settings button in the AutoComplete section. You can select the features you want to use, and then press OK.
-
How can I get the Form Server 5.0 / LiveCycle software license key?
I have the Form Server 5.0 software and need to get my license key to install on a different server. I looked at the LWS site and found a 2003 dated maintenance renewal. How can I get the license for this product?
Please contact the customer service
-
How to check that the form is signed to savings?
I created a form in AdobeXI Pro with a lot of text boxes and box than one signature. I modified the properties of signature boxes to mark as required. What I need now, is a way to get the shape check to make sure a signature is present in the signature box when the form is saved and if no signature is present, produce a pop up that says "a signature is required for this form.', or the pop-up could display the ToolTip for the signature box. How can I do this?
* Please use a step by step description, I'm new to form design and have no experience with Java script.
My bad... Replace == null with == "" and try again, please. "
-
Hi, I just at the end of the trial of Photoshop and want to join Cloud. Because I'm in Korea the form after I sign up is always in Korean, apparently without option to change it to English. I'm Australian. How to access a version English, please?
Take a look in the lower left corner. There should be an option to change the location/language. I'm in Norway and switch between Norwegians and US versions of the site in this way.
For what either with registration and payment, however, you pouvez be redirected, I don't know.
Maybe you are looking for
-
I need to reboot with disabled addons because that otherwise my screen replaces text colors andFunky fonts when I scroll up and down on the pages of the web site.
-
Pavilion laptop 15-n013ca - drivers Windows 7
Hello I recently acquired a Pavilion notebook 15-n013ca. It came pre-installed with Windows 8. After a few hours of use, I removed Win8 (because honestly, I hate it) and replaced by Windows 7. With the help of HP Support Assistant, I was able to inst
-
HP Pavilion DV3-2165ee: looking for the main chassis replacement HP Pavilion DV3-2165ee
I need to find replacement for my 6 year, HP Pavilion DV3-2165ee, there still works but the problem is in the main frame screw holes are all broken due to high temperature and its use. Then everyone here knows where I can order this part?
-
Problem with the HP Photosmart C3180 for Vista printer all-in-one drivers
Need help to reinstall my printer HP Photosmart C3180 all-in-One printer because I can not install the disk to download * original title - my computer went down and I had reinstalled Vista program, but my printer has not been reinstalled and I can't
-
EA6350 2 weeks just stop working, power light only
I just bought an EA6350 less than 2 weeks ago and came home yesterday night with no network no internet. The main power light is on top, but that's all, there is no activity light flashes on any wired connections that are wired and the Ethernet of my