How can I alert the user whenever the gravity form's dropdown value changed without using ajax?
I tried to change the minimum date based on that dropdown value.
Related
I have a dropdown button which works fine when I visit the page(having the button) first time but whenever i revisit the page containing the dropdown button, the previously selected value appears rather than the hint text which i want to appear every time the page is visited.
Dropdown button has a property value where we specify our variable to get the selected value. Before moving to the next screen you can set back the default value to it and it should work.
I have a dropdown in my app like this.
at beginning i am showing "Choose Filters" as the dropdown hint, once any of the item in dropdown in selected and there is a button as + icon once pressed I am doing further operations.
If an option is selected in dropdown its visible in the app, what I want to do is after selecting an option if clicks on that + icon I want instead of that selected dropdown value display the hint i.e "Choose Filters" . Is there any way to that please let me know.Thanks!
If you want the DropdownButton to show the hint again, you need to set it's selected value to null. So the variable you are setting on the property value of the DropdownButton should be set to null.
Refer to Figure 1, after user selected Start Date and End Date, then click on the Search button. When the Search button is clicked, the action submit page will be performed. But after the page is refresh, the value in the date picker is empty and the value is stored in the session.
My questions are:
How to get a value from session and display on an item
How to keep the value of dates in date pickers.
By default, value in the item have to be saved after submit. If your item loses its value after button click, then you have made something to that. There is a number of ways to do it, sometimes not obvious, so first check:
Item's properties, Source tab
Processes on the page - it could be a process with type Clear Session State
After that, try to remember all what you did after creating items. Create new page from scratch, add desired items and button with default properties, then make changes in properties one by one and check every change.
In the branch for that submit action, make sure you have entered "set items". Set the item "P20_START_DATE" with the value "&P20_START_DATE'".
In Apex 5, go to the branch, click on "Target" in the behaviour session and set the values there.
Summary, the way to maintain a value in an item after page submit is
Click on the item
Navigate to Source tab
Set Type to item
Set the Item to the Item you want to keep the value
I have a aui form with Liferay.Autofields enabled.
The fields that I am duplicating with Autofield has a button and a textfield. The button click will trigger the datepicker and the selected value should be stored in the textfield.
And, when I click the "PLUS" button provided by Autofield, the fields are duplicated.
First, I need to know how I can bind the trigger event of all buttons to the datepicker. I know to do this for a single button. But since we are using autofield, I need to give the ID of the button with the index. Can anyone suggest how to bind the trigger event in my scenario
Second, once I click the date picker button, I should be able to get index of the Autofield row in which I have clicked, so that I can update my textfield
I have a php form for a website containing text fields which display values retrieved from my database and also a submit button. I would like the submit button to be disabled by default and to only be clickable if the user has made a change to one of the text fields in the form. However if they were to change it back to the default value, the button would automatically be disabled again. Any help is appreciated.
You need to use javascript. For each field, you must make a eventhandler that checks the value and then enables or disables your submit-button.
Declare a Variables for each Text box
Then assign the values that you Retrieving from database to the text box and a Variables...
At the time of Button_Click compare the Value of text box with the Variables
If BOTH are Same then there is no EDIT's occur
That's all