I Got a design question pertaining to just my issue. My client asked me to have just 1 big text box in a pop up.Beneath it i have labels that user can see(Equipname,(LL,BB,PA),ClientName,Personnel). So he has to enter equipment name,either of(LL,BB,PA) ,cname,pname. An example row can look like "75 LL XYZCompany John". There is no delimiter between the entries. How can I make sure he is entering the corresponding values correctly. I mean instead of entering "XYZCompanyname" , he enters "John" and for john he enters xyzcompanyname..what then?I gave them multiple textboxes first,but they did not want it. any idea how to proceed?
I see no way of validating or ensuring the integrity of what is entered by only using one textbox for multiple fields, especially without some kind delimiter.
From experience with non-technical clients who sometimes want odd implementations like this, my suggestion would be to stick to your guns and provide proper input fields that you can validate and explain clearly to them the consequences that having invalid data can have.
Not to mention that when implementing it the way the customer wants it now and when it inevitably falls apart, the fingers are going to be pointed at you for 'not doing your job' correctly.
Related
I am running Wordpress 6.1.1 with WPForms 1.8.0
I have found a lot of solutions for checking and preventing duplicate email address entries on WPForms, including a WPAddon called Form Locker. However, I need to prevent duplicate home / mailing address entries on my sign up / entry form.
Several solutions that I found online that did not work is using the "Validation" section of WPForms, which isn't there. I was also told to use the "WPForms Dynamic Fields" plugin. But I don't see that one available either.
The type of thing I am doing, we only want one entry per household. So I want to check for duplicate address entries. If there is already an address entered, it will reject it and tell the user that this address has already entered in the program, and that we only allow one entry per household.
Also, as far as making sure people who live in the same apartment complex with different apartment numbers don't get wrongly filtered, I would like the duplicate checker to check for just the numbers in the address line 2. Don't strip the actual letters in the form submission (so if someone puts Apt 202, keep Apt 202 in the submission). But, just strip the letters so we can make sure there's no duplicate number entries. That way the user cannot just format their line 2 address to type something (alphabet wise) in front of their apartment number to throw it off.
I'd like for this code to be put in an example where I can have it to where it will check the address after Address Line 1, Address Line 2, City, State, and Zip are filled out and the user clicks down to go to the next form section. The form cannot be submitted until the address is verified as unique. As you can see, it's a one page form. But the user goes down and interacts with the form each section.
Here's the URL to my current form: https://easygetpaid.com/getting-started/
I am not sure how in wordpress what I GET or POST to do a query for an address entry in WPForms. I know I can search through entries on WPForms based on certain conditions but only through the admin panel. I'd like to be able to do this without the admin panel. But I only want it to search for duplicates due to privacy issues.
I am also not sure if there's an addon that can do what I need it to do. If anyone could please point me in the right direction, I'd greatly appreciate it. So far, there's no addons that can do it with the latest version of WPForms. I've tried searching all over. Anyone who can point me in the right direction would be very very much appreciated.
I can't believe this is as difficult as I'm finding it to be, so I must be missing something obvious!
I want to track data from two particular ads, one on TheSixFifty.com and one in the mountain view voice email newsletter. I've gotten as far as identifying these two sources in a table:
https://imgur.com/a/ljbeonT
I want to only display those two sources, so I thought a filter would be the way to do that, set up like so:
https://imgur.com/p7lBxnk
But that results in this sad, sad empty table:
https://imgur.com/hOzdOdu
Please tell me what I am doing wrong! Does "containing" not mean what I think it does? Help!
You're right - it is something simple!
Your filter contains an AND statement, so it will only show data where the source contains BOTH mv-voice.com and TheSixFifty.com.
Your filter should look like:
Only show Source Matching RegEx:
(TheSixFifty|mv-voice)\.com
Here's a great intro to Regular Expressions from Robbin Steif's guide, they'll be incredibly useful for any analysis.
Background
I'm writing an Alexa Skill and looking to get pieces of information from the user.
The following conversation for example:
Alexa: What month were you born at?
User: April
Alexa: Good. And what was your favorite movie?
User: April
The problem
Given the following utterances:
GetMonthIntent {month}
GetMovieIntent {movie}
Once a user answers April for the second time, the GetMonthIntent might be triggered.
What I have tried
Asking the user to specify which piece of information is giving by using the following utterances:
GetMonthIntent Month {month}
GetMovieIntent Movie {movie}
The question
What is the right way to make Alexa wait for a single term answer based on the current context?
In the same vein as the other answers here, you should take a look at the newest Node.JS library here, which handles state out of the box:
https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs#making-skill-state-management-simpler
You could define:
State_Launch
State_Month
State_Movie
And then return the proper error response if anything other than the GetMovieIntent or GetMonthIntent (etc.) intents are called in the wrong state.
You would have to do data validation on the server side to make sure the "month" is a valid one, and movies are even harder to validate unless you have a list of expected values. That is, if you care to parse them for use beyond repeating back.
Unfortunately, there is no solution. There is no way to specify the 'context' in which a user reply should be interpreted, so you have to tell the user "what was your favorite movie? Please say 'my favorite movie is' and then the name of the movie".
Here are two ASK feature requests that I think would address your issue:
https://forums.developer.amazon.com/content/idea/41062/creating-something-to-help-with-more-structured-qu.html
https://forums.developer.amazon.com/content/idea/55525/allow-a-response-to-specify-a-set-of-expected-inte.html
Personally I think this is fairly important so I voted for those, but they are not near the top.
I ran into this same problem when I created the "Who's on First? Baseball Skit" skill. I handled this by:
Create a sequence number for each response given by Alexa
Write this number to the "session" in the response.
The session is then passed back to your skill by Alexa in the next request.
Read the sequence number from the request to know what the previous question was.
If a given intent could be the answer to multiple questions (eg. month and movie in your case) then use the sequence number to determine which it is.
This should give you ideas on how to deal with repeated answers. The session is quite easy to use. Other options include writing the userId and status to a database like DynamoDB, but I find that the session works in most cases.
I am trying to automatically populate a field through a calculated field.
Just a quick background we distribute equipment with serials numbers. This equipment is sometimes returned. So some customers have multiple products each with different status of returned, shipped and installed.
I would like to transfer this serial number to a field on the contact through a calculated field only if the status is installed or shipped.
I have tried:
related($products,"serial"),",",(related($products,"status"))
and
related(contains(status,"installed)"products,"serial")
I need this for reporting reasons and would be greatly appreciated if you could help.
Thanks
You need a combination of ifElse and equal and related and or
As an example, the following Sugar Logic formula can be placed on a Contact record and will populate the field with the related account's name if the related account is of the type "Reseller." If the Account is of some other account_type then the field takes the value of "nope!"
ifElse(equal(related($accounts,"account_type"),"Reseller"),related($accounts,"name"),"nope!")
If you wanted to add another condition, or allow for another acceptable Account Type, build in an or
When you're writing lengthy Sugar Logic like this, I find it helpful to start writing it out with indentation using a text editor:
ifElse(
or(
equal(related($accounts,"account_type"),"Reseller"),
equal(related($accounts,"account_type"),"Investor"),
),
related($accounts,"name"),
"nope!"
)
In some versions of Sugar I've had to remove the extra spacing but it seems like in 7.2.2.0 at least the editor actually allows and preservers the formatting, which is a pleasant surprise.
I have some terribly written ASP.NET code that is just not working right (go figure).
I'm charged with maintaining and bug fixing this code, but I can barely make head or high water of it
Unfortunately I don't have the time to rewrite it.
If someone could help this would be great:
(the code): given to you here (some minimal obfuscation necessary):
http://mastergeektheater.com/issues.txt
What it's supposed to do:
Receives an order from a shopping cart application, and creates a table of textboxes based on the quantity of said object ordered.
Once the whole thing is validated (submit_Click()), then it reveals a div with further instructions and grays out the input fields so you can still see what was entered, but can't affect anymore. Emails are sent to each inputted email address.
What it actually does:
Receives the order, and correctly displays the inputs. On Submit, all of the "required field validators fire - if they are Vaild, then the comparison validators fire. SOMEWHERE AROUND HERE, it all goes south."
All of the input areas in the table except the first user disappear. if the comparisons success, then it postsback, and the first user is there (greyed out) and the other users are gone. if the comparisons fail, then it doesn't successfully postback, and stays on the input form, but all of the input fields except the first user still disappear
I know this is a little too specific to be a really well formed Stack Overflow question, but I've tried to break it down to things I think were wrong and I asked other questions that were more specific to try to fix it. Unfortunately, it hasn't worked. The code got better, but the whole thing is still broken. At this point I'm desperate.
If anyone could help, it would be a huge lifesaver. Thanks in advance for all of you who pour through this terrible code (and terrible question) for even a minute...
I guess the problem could be due to this line.
Session["quantity"] =(null != Request["quantity1"]) ? Request["quantity1"].ToString() : "1";
Do you have a field (hidden/input) named quantity1 on the form?
Is it being passed to querystring or as part of form item collection?
It will be 1 (when the form posts back to itself) & hence the loop will only run once.