ksulliv1 Posted January 4, 2010 Share Posted January 4, 2010 Hello, I am very new to this program and have a question regarding creating a rule using the wizard. I would like to make a rule that says "If text value of oneofmyvalues contains anything then return customtextIspecify" and I don't know if it is possible. So basically the rule for an email field on a web form would be for example, "If the value of email contains any text that the user types into that field then return E. " So when the user types the email address "blablabla@live.com" into that field on the form, the rule would add the capital E in a different font and forced to capital like "E. blablabla@live.com" I hope I am explaining this so you understand what I'm asking. Thanks Link to comment Share on other sites More sharing options...
David Miller Posted January 5, 2010 Share Posted January 5, 2010 I think you can use the built-in HidePhoneNumberLabel rule with a little modification. The logic is reverse from your explanation. The built-in rule's logic is: if the field is blank return nothing, else return a label plus the field. You can format the returned text with tags, or remove the field from the returned text (return only the label). The latter would allow you to format the Label and Email differently in the Text Frame Editor. Link to comment Share on other sites More sharing options...
ksulliv1 Posted January 5, 2010 Author Share Posted January 5, 2010 Ok thanks for the answer, I didn't think of that method and I am not sure what you mean by tag. But what I found that worked even though it seems that it wouldn't, was to use the wizard and for each of the fields that needed to have a specific string of text in front of the copy enetered by the user, and do a "If Text value of (one of my text fields) is greater than 0 then return (whatever copy I type in the field)" and even though these are not numeric entries, it still honors the rule if there is any copy whatsoever entered for that field. So for instance for email it would be, If Text value of email is greater than 0 then return E Then I can just highlight that rule and edit the text to be a different font and size and bold. I will have to try and see if I can do what you were saying also. Thanks Link to comment Share on other sites More sharing options...
David Miller Posted January 5, 2010 Share Posted January 5, 2010 I sent a private email with the code. Hope it comes through. I was having problems inserting code last night. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.