I need a Disable a particular input field. How do I do it using Pega? - pega

When the user selects the home address field, the office address should be automatically disabled. On the other hand, when the user selects the office address field, the home address should be automatically disabled.
How do I do it using Pega?

I can suggest two solutions
Hide Home Address and Office Address layouts by default.
Add one Radio button at top of the address layouts for example Address Type with values Office and Address.
If user selects Office address type from radio button then display Office Address Layout. If user selects Home address type from the radio button then display Home address layout.
Instead of hiding layouts, you can disable the fields as well based on the selected radio button option.
Add Action set on click on the Office Address layout and Home Address layout.
On click of Home Address layout add On Click action. Add Set Value action and set a flag property as .HomeAddressSelected = true , .OfficeAddressSelected = false and add Post Value action after Set Value action. Add Refresh Section action if Post Value action is not working.
On click of Office Address layout add On Click action. Add Set Value action and set a flag property as .HomeAddressSelected = false, .OfficeAddressSelected = true and add Post Value action after Set Value action. Add Refresh Section action if Post Value action is not working.
Now add disable condition for each property under Home Address layout as if .HomeAddressSelected == false disable the field. and add disable condition for each property under Office Address layout as if .OfficeAddressSelected == false disable the field.
Try both of the solutions and see yourself which one is business users accepting.

Related

How to make a popup form like on Pilot.com CTA homepage

Can anyone explain the term/name and how to create a CTA (call to action) like on the pilot.com homepage, where we can display only the email field and a button, fill in the email address.. instead of submission the button opens a popup once clicked to complete other data, and the email that we entered previously is already listed in the form?. Can it be made with Elementor or WordPress?
Thank you.

Nextjs - back button with an explore/filter page

I have an /explore page allowing the user to filter product iD based on different select (category, type). It works via building (firestore) query parameters dynamically based on the selected values. The results are shown on that same /explore page.
If a user clicks on a product, it opens a dynamically generated page and everything works well. However, while clicking the back button it goes back to the /explore page with the default values/query (not the ones with the previous query).
Example :
Default /explore showing all the sneakers
user applies filters for brand and color => it triggers a dynamically generated query and renders it on /explore
user clicks on one specific sneaker
user clicks on the back button and lands on Default /explore (without the queries)
However, I would like the user to land back on the /explore with brand and color filters...
Any ideas on how to do that ?
Thanks,
Max

Want custom field should be mailed to client in gravity form plugin

I am using gravity form plugin in worpress and i want some of the field should not be sent to client that field should only be displayed in admin panel.
You can change the notification email from Forms->Settings->Notifications. If you haven't created a custom notification there should default notification at least.
At the bottom of the notification editor you can see "Message" field which is a wysiwyg-editor. By default it has {all_fields} variable in it which prints every field from your form. You can choose individual fields from a little button on the right side of the editor which looks like a grey square with a dark triangle on it. Delete {all_fields} from the editor and choose the ones you like from a dropdown list which opens when you click the button.

Wordpress Gravity Forms e-mail notification not sending checkbox values

I want to send e-mail notification to user when form is submitted. All input field values are sent, but not checkbox values. To get values from input boxes, I use {Field label: ID} , but for checkboxes it sends an empty value via e-mail.
I have 4 checkboxes and the field is called Lisad with ID 11. Shouldn't I be useing {Lisad:11} to get the value and send it via e-mail?
Check-boxes can described in one of two ways: value and checked-ness:
checkbox: A check box. You must use the value attribute to define the value submitted by this item. Use the checked attribute to indicate whether this item is selected. You can also use the indeterminate attribute to indicate that the checkbox is in an indeterminate state (on most platforms, this draws a horizontal line across the checkbox).
Un-ticked checkboxes do not have their value sent when a form is submitted:
The HTML specification says unchecked check boxes are not successful, and thus web browsers do not send them. Unfortunately this introduces a gotcha: if an Invoice model has a paid flag, and in the form that edits a paid invoice the user unchecks its check box, no paid parameter is sent.
Ruby on Rails has a work-around for this, which you may be able to use:
To prevent this the helper generates an auxiliary hidden field before the very check box. The hidden field has the same name and its attributes mimic an unchecked check box.
This way, the client either sends only the hidden field (representing the check box is unchecked), or both fields. Since the HTML specification says key/value pairs have to be sent in the same order they appear in the form, and parameters extraction gets the last occurrence of any repeated key in the query string, that works for ordinary forms.

Change the NewPage for a TcxPageControl in the PageChanging event

We use a page control to step through a selection process from orders to products. The first tab shows a list of orders, the second tab shows a list of products for the selected order, and the 3rd tab contains a list of properties for the selected product.
If the user choose an order with only 1 product, we want to skip tab 2 and go straight to tab 3 to show the properties of the sole product.
I thought this could be done by setting the NewPage property of the PageChanging event, but it doesn't. What is a better way? To set the ActivePageIndex within the PageChanging event instead?
I would hide the tabs so the user cannot select them at all, and then use a pair of buttons to move back and forth between the pages as needed. When the user is on page 1 and is ready to move to the next page, the button handler can decide which page to show next.

Resources